home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / salaodebeleza_229.swf / scripts / frame_1 / DoAction.as
Text File  |  2009-04-21  |  107KB  |  4,167 lines

  1. function addNewLevel()
  2. {
  3.    levelCounter++;
  4.    _root.createEmptyMovieClip("drawLevel" + levelCounter,levelCounter);
  5.    currentDrawLevel = _root["drawLevel" + levelCounter];
  6. }
  7. function cleanOffNail()
  8. {
  9.    if(nailObjects[curNail] != null)
  10.    {
  11.       nailObjects[curNail].removeMovieClip();
  12.    }
  13.    if(nailObjectsDouble[curNail] != null)
  14.    {
  15.       nailObjectsDouble[curNail].removeMovieClip();
  16.    }
  17.    if(contourObjects[curNail] != null)
  18.    {
  19.       contourObjects[curNail].removeMovieClip();
  20.    }
  21.    if(highlightObjects[curNail] != null)
  22.    {
  23.       highlightObjects[curNail].removeMovieClip();
  24.    }
  25.    if(tipObjects[curNail] != null)
  26.    {
  27.       tipObjects[curNail].removeMovieClip();
  28.    }
  29. }
  30. function setNailBG()
  31. {
  32.    var _loc1_ = _root;
  33.    cleanOffNail();
  34.    levelCounter++;
  35.    if(polishApplied[curNail] != -1)
  36.    {
  37.       if(polishApplied[curNail] == 3)
  38.       {
  39.          drawSemiTransparentNail();
  40.          if(stickers[curNail] != -1)
  41.          {
  42.             levelCounter++;
  43.             _loc1_["s_" + curNail].swapDepths(levelCounter);
  44.          }
  45.       }
  46.       else
  47.       {
  48.          curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[nailShape[curNail]]) - 5;
  49.          curX = Number(nailCoordinates[curNail][0]);
  50.          if(curNail < 5)
  51.          {
  52.             curX -= 10;
  53.          }
  54.          else
  55.          {
  56.             curY += 13;
  57.             curX += 10;
  58.          }
  59.          _loc1_.attachMovie("c_" + polishGroup[curNail] + "_" + polishApplied[curNail],"c_" + polishApplied[curNail] + levelCounter,levelCounter,{_x:curX,_y:curY});
  60.          if(curNail < 5)
  61.          {
  62.             rotation = 25;
  63.          }
  64.          else
  65.          {
  66.             rotation = 335;
  67.          }
  68.          _loc1_["c_" + polishApplied[curNail] + levelCounter]._rotation = rotation;
  69.          addNewLevel();
  70.          maskingLevel = levelCounter - 1;
  71.          _loc1_["c_" + polishApplied[curNail] + maskingLevel].setMask(currentDrawLevel);
  72.          addr404:
  73.          drawNail();
  74.          levelCounter++;
  75.          if(stickers[curNail] != -1)
  76.          {
  77.             _loc1_["s_" + curNail].swapDepths(levelCounter);
  78.             levelCounter++;
  79.          }
  80.          if(mcBrushMix != null)
  81.          {
  82.             mcBrushMix.swapDepths(levelCounter);
  83.          }
  84.          else if(mcBrush != null)
  85.          {
  86.             mcBrush.swapDepths(levelCounter);
  87.          }
  88.       }
  89.    }
  90.    drawNailPad();
  91.    levelCounter++;
  92.    _loc1_.createEmptyMovieClip("compaundDrawLevel" + levelCounter,levelCounter);
  93.    compaundDrawLevel = _loc1_["compaundDrawLevel" + levelCounter];
  94.    curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[nailShape[curNail]]);
  95.    curX = Number(nailCoordinates[curNail][0]);
  96.    if(curNail < 5)
  97.    {
  98.       curX -= 13;
  99.       curY -= 5;
  100.    }
  101.    else
  102.    {
  103.       curX += 11;
  104.       curY += 11;
  105.    }
  106.    var _loc2_ = 2;
  107.    if(curNail < 5)
  108.    {
  109.       rotation = 25;
  110.    }
  111.    else
  112.    {
  113.       rotation = 335;
  114.    }
  115.    if(mixedColors[curNail] != -1)
  116.    {
  117.       compaundDrawLevel.attachMovie("red_bg","red_bg",_loc2_,{_x:curX,_y:curY});
  118.       var _loc3_ = new Color(compaundDrawLevel.red_bg);
  119.       _loc3_.setRGB(mixingColorVals[mixedColors[curNail]]);
  120.       compaundDrawLevel.red_bg._rotation = rotation;
  121.    }
  122.    if(mixedBackgrounds[curNail] != -1)
  123.    {
  124.       _loc2_ = _loc2_ + 1;
  125.       compaundDrawLevel.attachMovie("p_" + mixedBackgrounds[curNail],"p_" + mixedBackgrounds[curNail],_loc2_,{_x:curX,_y:curY});
  126.       compaundDrawLevel["p_" + mixedBackgrounds[curNail]]._rotation = rotation;
  127.    }
  128.    addNewLevel();
  129.    compaundDrawLevel.setMask(currentDrawLevel);
  130.    ┬º┬ºgoto(addr404);
  131. }
  132. function drawNail()
  133. {
  134.    var _loc2_ = _root;
  135.    var _loc1_ = nailShape;
  136.    if(curNail > 4)
  137.    {
  138.       curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[_loc1_][curNail]);
  139.       curX = Number(nailCoordinates[curNail][0]) + Number(nailWidth[3][curNail - 5]) - Number(nailWidth[_loc1_][curNail - 5]);
  140.    }
  141.    else
  142.    {
  143.       curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[nailShape[curNail]]);
  144.       curX = Number(nailCoordinates[curNail][0]);
  145.    }
  146.    currentDrawLevel.attachMovie("nail_" + curNail + "_" + nailShape,"nail_" + curNail,levelCounter,{_x:curX,_y:curY});
  147.    nailObjects[curNail] = currentDrawLevel["nail_" + curNail];
  148.    levelCounter++;
  149.    _loc2_.attachMovie("hl_" + curNail + "_" + nailShape,"hl_" + curNail,levelCounter,{_x:curX,_y:curY});
  150.    highlightObjects[curNail] = _loc2_["hl_" + curNail];
  151.    levelCounter++;
  152.    _loc2_.attachMovie("contour_" + curNail + "_" + nailShape,"contour_" + curNail,levelCounter,{_x:curX,_y:curY});
  153.    contourObjects[curNail] = _loc2_["contour_" + curNail];
  154.    levelCounter++;
  155.    if(curNail <= 4)
  156.    {
  157.       curY -= Number(nailLength[_loc1_][curNail]);
  158.       curX += Number(nailWidth[_loc1_][curNail] / 2);
  159.    }
  160.    _loc2_.attachMovie("sparkle","sparkle" + levelCounter,levelCounter,{_x:curX,_y:curY});
  161. }
  162. function drawNailPad()
  163. {
  164.    levelCounter++;
  165.    if(curNail > 4)
  166.    {
  167.       var _loc1_ = nailShape;
  168.       curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[_loc1_][curNail]);
  169.       curX = Number(nailCoordinates[curNail][0]) + Number(nailWidth[3][curNail - 5]) - Number(nailWidth[_loc1_][curNail - 5]);
  170.    }
  171.    else
  172.    {
  173.       curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[nailShape[curNail]]);
  174.       curX = Number(nailCoordinates[curNail][0]);
  175.    }
  176.    _root.attachMovie("nail_" + curNail + "_" + nailShape,"nailPad_" + curNail,levelCounter,{_x:curX,_y:curY});
  177.    nailObjectsDouble[curNail] = _root["nailPad_" + curNail];
  178. }
  179. function drawSemiTransparentNail()
  180. {
  181.    drawNailPad();
  182.    addNewLevel();
  183.    currentDrawLevel.attachMovie("nail_" + curNail + "_" + nailShape,"nail_" + curNail,levelCounter,{_x:curX,_y:curY});
  184.    createSemiTrasparentColor();
  185.    theOldColor = new Color(currentDrawLevel["nail_" + curNail]);
  186.    theOldColor.setTransform(semiTransparentTransform);
  187.    nailObjects[curNail] = currentDrawLevel["nail_" + curNail];
  188.    levelCounter++;
  189.    currentDrawLevel.attachMovie("tip_" + curNail + "_" + nailShape,"tip_" + curNail,levelCounter,{_x:curX,_y:curY});
  190.    tipObjects[curNail] = currentDrawLevel["tip_" + curNail];
  191.    levelCounter++;
  192.    currentDrawLevel.attachMovie("hl_" + curNail + "_" + nailShape,"hl_" + curNail,levelCounter,{_x:curX,_y:curY});
  193.    highlightObjects[curNail] = currentDrawLevel["hl_" + curNail];
  194.    levelCounter++;
  195.    currentDrawLevel.attachMovie("contour_" + curNail + "_" + nailShape,"contour_" + curNail,levelCounter,{_x:curX,_y:curY});
  196.    contourObjects[curNail] = currentDrawLevel["contour_" + curNail];
  197.    var _loc1_ = nailShape;
  198.    if(curNail > 4)
  199.    {
  200.       curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[_loc1_][curNail]);
  201.       curX = Number(nailCoordinates[curNail][0]) + Number(nailWidth[3][curNail - 5]) - Number(nailWidth[_loc1_][curNail - 5]);
  202.    }
  203.    if(curNail <= 4)
  204.    {
  205.       curY -= Number(nailLength[_loc1_][curNail]);
  206.       curX += Number(nailWidth[_loc1_][curNail] / 2);
  207.    }
  208.    levelCounter++;
  209.    _root.attachMovie("sparkle","sparkle" + levelCounter,levelCounter,{_x:curX,_y:curY});
  210. }
  211. function createSemiTrasparentColor()
  212. {
  213.    var _loc1_ = polishGroup[curNail];
  214.    semiTransparentTransform = new Object();
  215.    semiTransparentTransform.ra = 50;
  216.    semiTransparentTransform.rb = colorGroupVals[_loc1_][0];
  217.    semiTransparentTransform.ga = 40;
  218.    semiTransparentTransform.gb = colorGroupVals[_loc1_][1];
  219.    semiTransparentTransform.ba = 12;
  220.    semiTransparentTransform.bb = colorGroupVals[_loc1_][2];
  221.    semiTransparentTransform.aa = 20;
  222.    semiTransparentTransform.ab = 20;
  223. }
  224. function handleClickOnFinger()
  225. {
  226.    var _loc2_ = this;
  227.    var _loc3_ = _root;
  228.    if(mcRing != null)
  229.    {
  230.       rotation = 0;
  231.       if(curFinger > 4)
  232.       {
  233.          rotation = 300;
  234.       }
  235.       levelCounter++;
  236.       _loc3_.attachMovie("ring_" + curRing,"r_" + ringsCounter,levelCounter,{_x:ringCoordinates[curFinger][0],_y:ringCoordinates[curFinger][1]});
  237.       _loc3_["r_" + ringsCounter]._rotation = rotation;
  238.       if(curFinger == 0 || curFinger == 4 || curFinger == 5 || curFinger == 9)
  239.       {
  240.          _loc3_["r_" + ringsCounter]._xscale = 80;
  241.          _loc3_["r_" + ringsCounter]._yscale = 80;
  242.       }
  243.       rings.push("ring_" + curRing);
  244.       ringNames.push("r_" + ringsCounter);
  245.       var tmp = new Array(ringCoordinates[curFinger][0],ringCoordinates[curFinger][1]);
  246.       choosenRingsCoordinates.push(tmp);
  247.       choosenRingsFingerPosition.push(curFinger);
  248.       releaseRing();
  249.       _loc3_["r_" + ringsCounter].onPress = function()
  250.       {
  251.          levelCounter++;
  252.          this.swapDepths(levelCounter);
  253.          if(mcRing == null)
  254.          {
  255.             this.startDrag(false);
  256.          }
  257.          else
  258.          {
  259.             handleClickOnFinger();
  260.          }
  261.       };
  262.       _loc3_["r_" + ringsCounter].onRelease = function()
  263.       {
  264.          var _loc2_ = this;
  265.          _loc2_.stopDrag();
  266.          updateAfterEvent();
  267.          var _loc3_ = _root["finger_" + curFinger];
  268.          if(_loc2_.hitTest(recycle_bin) || !_loc3_.hitTest(_root._xmouse,_root._ymouse,true))
  269.          {
  270.             var _loc1_ = 0;
  271.             while(_loc1_ < ringNames.length)
  272.             {
  273.                if(_loc2_._name == ringNames[_loc1_])
  274.                {
  275.                   ringNames.splice(_loc1_,1);
  276.                   rings.splice(_loc1_,1);
  277.                   choosenRingsCoordinates.splice(_loc1_,1);
  278.                   choosenRingsFingerPosition.splice(_loc1_,1);
  279.                   cur_Sound = new Sound();
  280.                   cur_Sound.attachSound("trash.mp3");
  281.                   cur_Sound.start();
  282.                   break;
  283.                }
  284.                _loc1_ = _loc1_ + 1;
  285.             }
  286.             _loc2_.removeMovieClip();
  287.          }
  288.          else
  289.          {
  290.             _loc1_ = 0;
  291.             while(_loc1_ < ringNames.length)
  292.             {
  293.                if(_loc2_._name == ringNames[_loc1_])
  294.                {
  295.                   choosenRingsCoordinates[_loc1_][0] = _loc2_._x;
  296.                   choosenRingsCoordinates[_loc1_][1] = _loc2_._y;
  297.                   break;
  298.                }
  299.                _loc1_ = _loc1_ + 1;
  300.             }
  301.          }
  302.       };
  303.       ringsCounter++;
  304.    }
  305. }
  306. function handleClickOnNail()
  307. {
  308.    var _loc1_ = _root;
  309.    if(mcBrush != null)
  310.    {
  311.       polishApplied[curNail] = curPolish;
  312.       polishGroup[curNail] = curColorGroup;
  313.       mixedBackgrounds[curNail] = -1;
  314.       mixedColors[curNail] = -1;
  315.       setNailBG();
  316.       levelCounter++;
  317.       mcBrush.swapDepths(levelCounter);
  318.       cur_Sound = new Sound();
  319.       cur_Sound.attachSound("nail_color.mp3");
  320.       cur_Sound.start();
  321.    }
  322.    else if(mcBrushMix != null)
  323.    {
  324.       polishApplied[curNail] = -1;
  325.       polishGroup[curNail] = -1;
  326.       mixedBackgrounds[curNail] = curMixedBG;
  327.       mixedColors[curNail] = curMixedColor;
  328.       setNailBG();
  329.       cur_Sound = new Sound();
  330.       cur_Sound.attachSound("nail_color.mp3");
  331.       cur_Sound.start();
  332.    }
  333.    else if(mcRemover != null)
  334.    {
  335.       if(stickers[curNail] != -1)
  336.       {
  337.          _loc1_["s_" + curNail].removeMovieClip();
  338.          stickers[curNail] = -1;
  339.       }
  340.       cleanOffNail();
  341.       polishApplied[curNail] = -1;
  342.       polishGroup[curNail] = -1;
  343.       mixedBackgrounds[curNail] = -1;
  344.       mixedColors[curNail] = -1;
  345.       addNewLevel();
  346.       drawNail();
  347.       cur_Sound = new Sound();
  348.       cur_Sound.attachSound("remover.mp3");
  349.       cur_Sound.start();
  350.       levelCounter++;
  351.       mcRemover.swapDepths(levelCounter);
  352.    }
  353.    else if(mcSticker != null)
  354.    {
  355.       cur_Sound = new Sound();
  356.       cur_Sound.attachSound("bottle_rollover.mp3");
  357.       cur_Sound.start();
  358.       if(stickers[curNail] != -1)
  359.       {
  360.          _loc1_["s_" + curNail].removeMovieClip();
  361.       }
  362.       if(curNail < 4)
  363.       {
  364.          rotation = 25;
  365.       }
  366.       else if(curNail == 4)
  367.       {
  368.          rotation = 50;
  369.       }
  370.       else if(curNail == 5)
  371.       {
  372.          rotation = 310;
  373.       }
  374.       else
  375.       {
  376.          rotation = 335;
  377.       }
  378.       levelCounter++;
  379.       _loc1_.attachMovie("s_" + curSticker,"s_" + curNail,levelCounter,{_x:stickerCoordinates[curNail][0],_y:stickerCoordinates[curNail][1]});
  380.       _loc1_["s_" + curNail]._rotation = rotation;
  381.       stickers[curNail] = curSticker;
  382.       var _loc2_ = "s_" + curNail;
  383.       _loc1_[_loc2_].gotoAndStop(1);
  384.    }
  385. }
  386. function handleNailShapeChange()
  387. {
  388.    i = 0;
  389.    while(i < 10)
  390.    {
  391.       curNail = i;
  392.       setNailBG();
  393.       i++;
  394.    }
  395. }
  396. function handleClickOnHands(theHand)
  397. {
  398.    if(mcBracelet != null)
  399.    {
  400.       releaseBracelet();
  401.       if(bracelets[theHand] != -1)
  402.       {
  403.          _root[bracelets[theHand]].removeMovieClip();
  404.          bracelets[theHand] = -1;
  405.          customBracelets[theHand] = -100;
  406.          braceletNumbers[theHand] = -1;
  407.          choosenBraceletCoordinates[theHand][0] = -1;
  408.          choosenBraceletCoordinates[theHand][1] = -1;
  409.       }
  410.       levelCounter++;
  411.       if(customBraceletClicked)
  412.       {
  413.          rotation = 330;
  414.          if(theHand == 0)
  415.          {
  416.             rotation = 30;
  417.          }
  418.          var beadCoord_tmp;
  419.          var braceletCoord_tmp;
  420.          var _loc3_ = undefined;
  421.          var _loc1_ = 0;
  422.          while(_loc1_ < customBracelet.length)
  423.          {
  424.             if(customBracelet[_loc1_] == curBracelet)
  425.             {
  426.                _loc3_ = customBeads[_loc1_];
  427.                beadCoord_tmp = customBeadsCoordinates[_loc1_];
  428.                braceletCoord_tmp = customBraceletCoordinates[_loc1_];
  429.                break;
  430.             }
  431.             _loc1_ = _loc1_ + 1;
  432.          }
  433.          if(curBracelet != -1)
  434.          {
  435.             _root.attachMovie("custom_bracelet_" + curBracelet,"br_" + levelCounter,levelCounter,{_x:createdBraceletCoordinates[theHand][0],_y:createdBraceletCoordinates[theHand][1]});
  436.          }
  437.          else
  438.          {
  439.             _root.createEmptyMovieClip("br_" + levelCounter,levelCounter);
  440.             _root["br_" + levelCounter]._x = createdBraceletCoordinates[theHand][0];
  441.             _root["br_" + levelCounter]._y = createdBraceletCoordinates[theHand][1];
  442.          }
  443.          bracelets[theHand] = "br_" + levelCounter;
  444.          customBracelets[theHand] = curBracelet;
  445.          var _loc2_ = 0;
  446.          while(_loc2_ < _loc3_.length)
  447.          {
  448.             curX = Number(beadCoord_tmp[_loc2_][0] - braceletCoord_tmp[0]);
  449.             curY = Number(beadCoord_tmp[_loc2_][1] - braceletCoord_tmp[1]);
  450.             levelCounter++;
  451.             _root[bracelets[theHand]].attachMovie("bead_" + _loc3_[_loc2_],"createdBeads_" + _loc2_ + levelCounter,levelCounter,{_x:curX,_y:curY});
  452.             _loc2_ = _loc2_ + 1;
  453.          }
  454.          choosenBraceletCoordinates[theHand][0] = createdBraceletCoordinates[theHand][0];
  455.          choosenBraceletCoordinates[theHand][1] = createdBraceletCoordinates[theHand][1];
  456.          _root[bracelets[theHand]]._rotation = rotation;
  457.       }
  458.       else
  459.       {
  460.          rotation = 0;
  461.          if(theHand == 0)
  462.          {
  463.             rotation = 60;
  464.          }
  465.          _root.attachMovie("bracelet_" + curBracelet,"br_" + curBracelet + "_" + levelCounter,levelCounter,{_x:braceletCoordinates[theHand][0],_y:braceletCoordinates[theHand][1]});
  466.          bracelets[theHand] = "br_" + curBracelet + "_" + levelCounter;
  467.          braceletNumbers[theHand] = curBracelet;
  468.          choosenBraceletCoordinates[theHand][0] = braceletCoordinates[theHand][0];
  469.          choosenBraceletCoordinates[theHand][1] = braceletCoordinates[theHand][1];
  470.          _root[bracelets[theHand]]._rotation = rotation;
  471.       }
  472.       _root[bracelets[theHand]].onRelease = function()
  473.       {
  474.          var _loc1_ = this;
  475.          _loc1_.stopDrag();
  476.          if(_loc1_.hitTest(recycle_bin))
  477.          {
  478.             bracelets[theHand] = -1;
  479.             customBracelets[theHand] = -100;
  480.             braceletNumbers[theHand] = -1;
  481.             choosenBraceletCoordinates[theHand][0] = -1;
  482.             choosenBraceletCoordinates[theHand][1] = -1;
  483.             _loc1_.removeMovieClip();
  484.             cur_Sound = new Sound();
  485.             cur_Sound.attachSound("trash.mp3");
  486.             cur_Sound.start();
  487.          }
  488.          else
  489.          {
  490.             choosenBraceletCoordinates[theHand][0] = _loc1_._x;
  491.             choosenBraceletCoordinates[theHand][1] = _loc1_._y;
  492.          }
  493.       };
  494.       _root[bracelets[theHand]].onPress = function()
  495.       {
  496.          if(mcBracelet == null)
  497.          {
  498.             this.startDrag(false);
  499.          }
  500.          else
  501.          {
  502.             handleClickOnHands(theHand);
  503.          }
  504.       };
  505.    }
  506. }
  507. function handleRollOVerPolish(theGroup, thePolish)
  508. {
  509.    var _loc3_ = theGroup;
  510.    if(mcBottle_Popup._visible != true)
  511.    {
  512.       if(mcBrush == null)
  513.       {
  514.          var _loc1_ = undefined;
  515.          if(curColorGroup != _loc3_)
  516.          {
  517.             _loc1_ = "polish_" + curColorGroup;
  518.             _root[_loc1_].gotoAndStop(1);
  519.          }
  520.          curColorGroup = _loc3_;
  521.          curPolish = thePolish;
  522.          _loc1_ = "polish_" + _loc3_;
  523.          var _loc2_ = thePolish + 2;
  524.          _root[_loc1_].gotoAndStop(_loc2_);
  525.       }
  526.    }
  527. }
  528. function handleClickOnPolish(theGroup, thePolish)
  529. {
  530.    var _loc1_ = _root;
  531.    if(mcBottle_Popup._visible != true)
  532.    {
  533.       polish_explanations._visible = false;
  534.       var _loc2_ = undefined;
  535.       if(curColorGroup != theGroup)
  536.       {
  537.          _loc2_ = "polish_" + curColorGroup;
  538.          _loc1_[_loc2_].gotoAndStop(1);
  539.       }
  540.       curColorGroup = theGroup;
  541.       curPolish = thePolish;
  542.       _loc2_ = "polish_" + curColorGroup;
  543.       var _loc3_ = thePolish + 6;
  544.       _loc1_[_loc2_].gotoAndStop(_loc3_);
  545.       cur_Sound = new Sound();
  546.       cur_Sound.attachSound("color_click.mp3");
  547.       cur_Sound.start();
  548.       releaseRemover();
  549.       releaseSticker();
  550.       releaseRing();
  551.       if(mcBrush == null)
  552.       {
  553.          levelCounter++;
  554.          _loc1_.attachMovie("brush","mcBrush",levelCounter,{_x:_loc1_._xmouse,_y:0});
  555.          mcBrush.onMouseMove = function()
  556.          {
  557.             var _loc1_ = this;
  558.             _loc1_._x = _root._xmouse;
  559.             _loc1_._y = _root._ymouse - _loc1_._height;
  560.             updateAfterEvent();
  561.          };
  562.       }
  563.    }
  564. }
  565. function getSticker()
  566. {
  567.    var _loc1_ = _root;
  568.    var _loc2_ = this;
  569.    levelCounter++;
  570.    _loc1_.attachMovie("s_" + curSticker,"mcSticker",levelCounter,{_x:_loc1_._xmouse - 7,_y:_loc1_._ymouse - 13});
  571.    mcSticker.onMouseMove = function()
  572.    {
  573.       var _loc1_ = this;
  574.       _loc1_._x = _root._xmouse - _loc1_._width / 2;
  575.       _loc1_._y = _root._ymouse - _loc1_._height / 2;
  576.       updateAfterEvent();
  577.    };
  578. }
  579. function getBracelet()
  580. {
  581.    if(mcBottle_Popup._visible != true)
  582.    {
  583.       levelCounter++;
  584.       if(customBraceletClicked)
  585.       {
  586.          if(curBracelet != -1)
  587.          {
  588.             _root.attachMovie("custom_bracelet_" + curBracelet,"mcBracelet",levelCounter,{_x:_root._xmouse - 46,_y:_root._ymouse - 40});
  589.          }
  590.          else
  591.          {
  592.             _root.createEmptyMovieClip("mcBracelet",levelCounter);
  593.             _root.mcBracelet._x = _root._xmouse - 46;
  594.             _root.mcBracelet._y = _root._ymouse - 40;
  595.          }
  596.          var beadCoord_tmp;
  597.          var braceletCoord_tmp;
  598.          var _loc3_ = undefined;
  599.          var _loc1_ = 0;
  600.          while(_loc1_ < customBracelet.length)
  601.          {
  602.             if(customBracelet[_loc1_] == curBracelet)
  603.             {
  604.                _loc3_ = customBeads[_loc1_];
  605.                beadCoord_tmp = customBeadsCoordinates[_loc1_];
  606.                braceletCoord_tmp = customBraceletCoordinates[_loc1_];
  607.                break;
  608.             }
  609.             _loc1_ = _loc1_ + 1;
  610.          }
  611.          var _loc2_ = 0;
  612.          while(_loc2_ < _loc3_.length)
  613.          {
  614.             curX = Number(beadCoord_tmp[_loc2_][0] - braceletCoord_tmp[0]);
  615.             curY = Number(beadCoord_tmp[_loc2_][1] - braceletCoord_tmp[1]);
  616.             levelCounter++;
  617.             _root.mcBracelet.attachMovie("bead_" + _loc3_[_loc2_],"createdBeads_" + _loc2_ + levelCounter,levelCounter,{_x:curX,_y:curY});
  618.             _loc2_ = _loc2_ + 1;
  619.          }
  620.       }
  621.       else
  622.       {
  623.          _root.attachMovie("bracelet_" + curBracelet,"mcBracelet",levelCounter,{_x:_root._xmouse - 46,_y:_root._ymouse - 40});
  624.       }
  625.       mcBracelet.onMouseMove = function()
  626.       {
  627.          var _loc1_ = this;
  628.          _loc1_._x = _root._xmouse - _loc1_._width / 2;
  629.          _loc1_._y = _root._ymouse - _loc1_._height / 2;
  630.          updateAfterEvent();
  631.       };
  632.    }
  633. }
  634. function getRing()
  635. {
  636.    var _loc1_ = _root;
  637.    if(mcBottle_Popup._visible != true)
  638.    {
  639.       levelCounter++;
  640.       _loc1_.attachMovie("ring_" + curRing,"mcRing",levelCounter,{_x:_loc1_._xmouse - 15,_y:_loc1_._ymouse - 15});
  641.       mcRing.onMouseMove = function()
  642.       {
  643.          this._x = _root._xmouse - 15;
  644.          this._y = _root._ymouse - 15;
  645.          updateAfterEvent();
  646.       };
  647.    }
  648. }
  649. function changeHandsColor()
  650. {
  651.    if(mcBottle_Popup._visible != true)
  652.    {
  653.       releaseAll();
  654.       var _loc1_ = new Color(bg.hands);
  655.       _loc1_.setRGB(handsColors[curHandsColor]);
  656.       cur_Sound = new Sound();
  657.       cur_Sound.attachSound("color_click.mp3");
  658.       cur_Sound.start();
  659.    }
  660. }
  661. function releaseTheBrush()
  662. {
  663.    if(mcBrush != null)
  664.    {
  665.       mcBrush.removeMovieClip();
  666.    }
  667.    if(mcBrushMix != null)
  668.    {
  669.       mcBrushMix.removeMovieClip();
  670.    }
  671. }
  672. function releaseRemover()
  673. {
  674.    if(mcRemover != null)
  675.    {
  676.       mcRemover.removeMovieClip();
  677.    }
  678. }
  679. function releaseSticker()
  680. {
  681.    if(mcSticker != null)
  682.    {
  683.       mcSticker.removeMovieClip();
  684.    }
  685. }
  686. function releaseRing()
  687. {
  688.    if(mcRing != null)
  689.    {
  690.       mcRing.removeMovieClip();
  691.    }
  692. }
  693. function releasePolishes()
  694. {
  695.    var _loc2_ = _root;
  696.    var the_group;
  697.    var _loc1_ = 0;
  698.    while(_loc1_ < nPolishes)
  699.    {
  700.       the_group = "polish_" + _loc1_;
  701.       if(_loc2_[the_group] != null)
  702.       {
  703.          _loc2_[the_group].gotoAndStop(1);
  704.       }
  705.       var _loc3_ = "color_group_" + _loc1_;
  706.       if(_loc2_[_loc3_] != null)
  707.       {
  708.          _loc2_[_loc3_]._visible = false;
  709.       }
  710.       _loc1_ = _loc1_ + 1;
  711.    }
  712. }
  713. function releaseBracelet()
  714. {
  715.    if(mcBracelet != null)
  716.    {
  717.       mcBracelet.removeMovieClip();
  718.    }
  719. }
  720. function releaseAll()
  721. {
  722.    releaseTheBrush();
  723.    releaseRemover();
  724.    releaseSticker();
  725.    releaseRing();
  726.    releasePolishes();
  727.    releaseBracelet();
  728.    customBraceletClicked = false;
  729.    cap._visible = true;
  730.    levelCounter++;
  731.    cap.swapDepths(levelCounter);
  732.    stickers_roll.gotoAndStop(1);
  733. }
  734. function displayPolishExplanation(num)
  735. {
  736.    var _loc2_ = num;
  737.    if(polishExplanationsDisplayed[_loc2_] == -1)
  738.    {
  739.       polishExplanationsDisplayed[_loc2_] = 1;
  740.       var _loc3_ = "polish_" + _loc2_;
  741.       var _loc1_ = _root[_loc3_];
  742.       polish_explanations._visible = true;
  743.       polish_explanations._x = _loc1_._x;
  744.       polish_explanations._y = _loc1_._y + Number(15);
  745.       levelCounter++;
  746.       polish_explanations.swapDepths(levelCounter);
  747.       var delta = 0;
  748.       displayInterval = setInterval(function()
  749.       {
  750.          delta++;
  751.          if(delta == 20)
  752.          {
  753.             clearInterval(displayInterval);
  754.             polish_explanations._visible = false;
  755.          }
  756.       }
  757.       ,100);
  758.    }
  759. }
  760. function colorPressed(num)
  761. {
  762.    var _loc2_ = num;
  763.    var _loc3_ = _root;
  764.    if(mcBottle_Popup._visible != true)
  765.    {
  766.       releaseAll();
  767.       var _loc1_ = undefined;
  768.       displayPolishExplanation(_loc2_);
  769.       if(curColorGroup != _loc2_)
  770.       {
  771.          _loc1_ = "color_group_" + curColorGroup;
  772.          if(_loc3_[_loc1_] != null)
  773.          {
  774.             _loc3_[_loc1_]._visible = false;
  775.          }
  776.       }
  777.       _loc1_ = "color_group_" + _loc2_;
  778.       _loc3_[_loc1_]._visible = true;
  779.       curColorGroup = _loc2_;
  780.    }
  781. }
  782. function colorRolledOver(num)
  783. {
  784.    var _loc2_ = num;
  785.    var _loc3_ = _root;
  786.    if(mcBottle_Popup._visible != true)
  787.    {
  788.       if(mcBrush == null)
  789.       {
  790.          if(curColorGroup != _loc2_)
  791.          {
  792.             var _loc1_ = "color_group_" + curColorGroup;
  793.             if(_loc3_[_loc1_] != null)
  794.             {
  795.                _loc3_[_loc1_]._visible = false;
  796.             }
  797.             cur_Sound = new Sound();
  798.             cur_Sound.attachSound("bottle_rollover.mp3");
  799.             cur_Sound.start();
  800.             _loc1_ = "color_group_" + _loc2_;
  801.             _loc3_[_loc1_]._visible = true;
  802.             curColorGroup = _loc2_;
  803.          }
  804.       }
  805.    }
  806. }
  807. function showCustomBracelet()
  808. {
  809.    var _loc2_ = _root;
  810.    if(new_label != null)
  811.    {
  812.       new_label._visible = true;
  813.    }
  814.    var _loc1_ = 0;
  815.    while(_loc1_ < nBraceletSets)
  816.    {
  817.       _loc2_["bracelet_set_" + _loc1_]._visible = false;
  818.       _loc1_ = _loc1_ + 1;
  819.    }
  820.    _loc1_ = 0;
  821.    while(_loc1_ < customBracelet.length)
  822.    {
  823.       customBraceletObjects[_loc1_]._visible = false;
  824.       _loc1_ = _loc1_ + 1;
  825.    }
  826.    customBraceletObjects[curCustomBracelet2Show]._visible = true;
  827. }
  828. function showBracelet()
  829. {
  830.    var _loc2_ = _root;
  831.    if(new_label != null)
  832.    {
  833.       new_label._visible = false;
  834.    }
  835.    var _loc1_ = 0;
  836.    while(_loc1_ < nBraceletSets)
  837.    {
  838.       _loc2_["bracelet_set_" + _loc1_]._visible = false;
  839.       _loc1_ = _loc1_ + 1;
  840.    }
  841.    _loc1_ = 0;
  842.    while(_loc1_ < customBracelet.length)
  843.    {
  844.       customBraceletObjects[_loc1_]._visible = false;
  845.       _loc1_ = _loc1_ + 1;
  846.    }
  847.    _loc2_["bracelet_set_" + curBraceletSet]._visible = true;
  848. }
  849. function openMixPopUp()
  850. {
  851.    var _loc1_ = _root;
  852.    releaseAll();
  853.    _loc1_.mcBottle_Popup._visible = true;
  854.    levelCounter++;
  855.    mcBottle_Popup.swapDepths(levelCounter);
  856.    curMixedBG = -1;
  857.    curMixedColor = -1;
  858.    if(_loc1_.bottleBG_small != null)
  859.    {
  860.       _loc1_.bottleBG_small.removeMovieClip();
  861.    }
  862.    if(_loc1_.small_p != null)
  863.    {
  864.       _loc1_.small_p.removeMovieClip();
  865.    }
  866.    if(mcBottle_Popup.bottleBG_big != null)
  867.    {
  868.       mcBottle_Popup.bottleBG_big.removeMovieClip();
  869.    }
  870.    if(mcBottle_Popup.big_p != null)
  871.    {
  872.       mcBottle_Popup.big_p.removeMovieClip();
  873.    }
  874.    if(premium == 0)
  875.    {
  876.       showRegistrationDialog();
  877.    }
  878. }
  879. function drawSmallBottle()
  880. {
  881.    var _loc1_ = _root;
  882.    if(_loc1_.bottleBG_small != null)
  883.    {
  884.       _loc1_.bottleBG_small.removeMovieClip();
  885.    }
  886.    if(_loc1_.small_p != null)
  887.    {
  888.       _loc1_.small_p.removeMovieClip();
  889.    }
  890.    if(curMixedColor != -1)
  891.    {
  892.       levelCounter++;
  893.       _loc1_.attachMovie("bottleBG_small","bottleBG_small",levelCounter,{_x:294,_y:66});
  894.       var _loc2_ = new Color(_loc1_.bottleBG_small);
  895.       _loc2_.setRGB(mixingColorVals[curMixedColor]);
  896.    }
  897.    if(curMixedBG != -1)
  898.    {
  899.       levelCounter++;
  900.       _loc1_.attachMovie("small_p_" + curMixedBG,"small_p",levelCounter,{_x:294,_y:66});
  901.    }
  902.    levelCounter++;
  903.    _loc1_.attachMovie("bottle_small","bottle_small",levelCounter,{_x:292,_y:30});
  904. }
  905. function drawBigBottle()
  906. {
  907.    if(mcBottle_Popup.bottleBG_big != null)
  908.    {
  909.       mcBottle_Popup.bottleBG_big.removeMovieClip();
  910.    }
  911.    if(mcBottle_Popup.big_p != null)
  912.    {
  913.       mcBottle_Popup.big_p.removeMovieClip();
  914.    }
  915.    if(curMixedColor != -1)
  916.    {
  917.       levelCounter++;
  918.       mcBottle_Popup.attachMovie("bottleBG_big","bottleBG_big",levelCounter,{_x:-131,_y:-43});
  919.       var _loc1_ = new Color(mcBottle_Popup.bottleBG_big);
  920.       _loc1_.setRGB(mixingColorVals[curMixedColor]);
  921.    }
  922.    if(curMixedBG != -1)
  923.    {
  924.       levelCounter++;
  925.       mcBottle_Popup.attachMovie("big_p_" + curMixedBG,"big_p",levelCounter,{_x:-131,_y:-43});
  926.    }
  927.    levelCounter++;
  928.    mcBottle_Popup.attachMovie("bottle_big","bottle_big",levelCounter,{_x:-134,_y:-99});
  929. }
  930. function changeColor(num)
  931. {
  932.    curMixedColor = num;
  933.    drawBigBottle();
  934. }
  935. function changeSample(num)
  936. {
  937.    curMixedBG = num;
  938.    drawBigBottle();
  939. }
  940. function animateSparkleJewellery()
  941. {
  942.    var _loc2_ = Math.floor(Math.random() * ring_set_0._width) + ring_set_0._x;
  943.    var _loc1_ = Math.floor(Math.random() * (ring_set_0._height + bracelet_set_0._height)) + ring_set_0._y;
  944.    levelCounter++;
  945.    _root.attachMovie("sparkle","sp_" + levelCounter,levelCounter,{_x:_loc2_,_y:_loc1_});
  946. }
  947. function initBraceletsPopup()
  948. {
  949.    customBracelet_tmp = -1;
  950.    customBraceletCoordinates_tmp = new Array(-1,-1);
  951.    customBeads_tmp = new Array();
  952.    customBeadsCoordinates_tmp = new Array();
  953.    curBead = -1;
  954.    chosenBracelet = null;
  955.    beadNames = new Array();
  956.    beadsCounter = 0;
  957.    braceletsCounter = 0;
  958.    bracelets_popup.bead_set_1._visible = false;
  959.    bracelets_popup.bead_set_0._visible = true;
  960.    bracelets_popup.custom_bracelet_set_0._visible = true;
  961.    bracelets_popup.custom_bracelet_set_1._visible = false;
  962.    braceletSetCounter = 0;
  963.    createdBracelet = null;
  964. }
  965. function clearAllCustomBracelets()
  966. {
  967.    var _loc3_ = _root;
  968.    releaseAll_Frame3();
  969.    var _loc1_ = 0;
  970.    while(_loc1_ < beadNames.length)
  971.    {
  972.       var _loc2_ = _loc3_[beadNames[_loc1_]];
  973.       _loc2_.removeMovieClip();
  974.       _loc1_ = _loc1_ + 1;
  975.    }
  976.    chosenBracelet.removeMovieClip();
  977.    initBraceletsPopup();
  978. }
  979. function releaseBracelet()
  980. {
  981.    if(mcBracelet != null)
  982.    {
  983.       mcBracelet.removeMovieClip();
  984.    }
  985. }
  986. function releaseBead()
  987. {
  988.    if(mcBead != null)
  989.    {
  990.       mcBead.removeMovieClip();
  991.    }
  992. }
  993. function releaseAll_Frame3()
  994. {
  995.    releaseBead();
  996.    releaseBracelet();
  997. }
  998. function getCustomBracelet(num)
  999. {
  1000.    var _loc1_ = _root;
  1001.    var _loc2_ = this;
  1002.    releaseAll_Frame3();
  1003.    customBracelet_tmp = num;
  1004.    levelCounter++;
  1005.    _loc1_.attachMovie("custom_bracelet_" + customBracelet_tmp,"mcBracelet",levelCounter,{_x:_loc1_._xmouse - 46,_y:_loc1_._ymouse - 40});
  1006.    mcBracelet.onMouseMove = function()
  1007.    {
  1008.       var _loc1_ = this;
  1009.       _loc1_._x = _root._xmouse - _loc1_._width / 2;
  1010.       _loc1_._y = _root._ymouse - _loc1_._height / 2;
  1011.       updateAfterEvent();
  1012.    };
  1013. }
  1014. function getABead(num)
  1015. {
  1016.    var _loc1_ = _root;
  1017.    var _loc2_ = this;
  1018.    releaseAll_Frame3();
  1019.    curBead = num;
  1020.    levelCounter++;
  1021.    _loc1_.attachMovie("bead_" + curBead,"mcBead",levelCounter,{_x:_loc1_._xmouse - 15,_y:_loc1_._ymouse - 15});
  1022.    mcBead.onMouseMove = function()
  1023.    {
  1024.       var _loc1_ = this;
  1025.       _loc1_._x = _root._xmouse - _loc1_._width / 2;
  1026.       _loc1_._y = _root._ymouse - _loc1_._height / 2;
  1027.       updateAfterEvent();
  1028.    };
  1029. }
  1030. function handleAddingBead()
  1031. {
  1032.    var _loc2_ = this;
  1033.    var _loc3_ = _root;
  1034.    levelCounter++;
  1035.    curX = Number(_loc3_._xmouse - mcBead._width / 2);
  1036.    curY = Number(_loc3_._ymouse - mcBead._height / 2);
  1037.    _loc3_.attachMovie("bead_" + curBead,"bead_" + beadsCounter,levelCounter,{_x:curX,_y:curY});
  1038.    customBeads_tmp.push(curBead);
  1039.    beadNames.push("bead_" + beadsCounter);
  1040.    var tmpCoordinates = new Array(curX,curY);
  1041.    customBeadsCoordinates_tmp.push(tmpCoordinates);
  1042.    releaseBead();
  1043.    _loc3_["bead_" + beadsCounter].onRelease = function()
  1044.    {
  1045.       var _loc2_ = this;
  1046.       _loc2_.stopDrag();
  1047.       if(_loc2_.hitTest(bracelets_popup.recycle_bin))
  1048.       {
  1049.          var _loc1_ = 0;
  1050.          while(_loc1_ < beadNames.length)
  1051.          {
  1052.             if(_loc2_._name == beadNames[_loc1_])
  1053.             {
  1054.                customBeads_tmp.splice(_loc1_,1);
  1055.                beadNames.splice(_loc1_,1);
  1056.                customBeadsCoordinates_tmp.splice(_loc1_,1);
  1057.                cur_Sound = new Sound();
  1058.                cur_Sound.attachSound("trash.mp3");
  1059.                cur_Sound.start();
  1060.                break;
  1061.             }
  1062.             _loc1_ = _loc1_ + 1;
  1063.          }
  1064.          _loc2_.removeMovieClip();
  1065.          curBead = -1;
  1066.       }
  1067.       else
  1068.       {
  1069.          _loc1_ = 0;
  1070.          while(_loc1_ < beadNames.length)
  1071.          {
  1072.             if(_loc2_._name == beadNames[_loc1_])
  1073.             {
  1074.                customBeadsCoordinates_tmp[_loc1_][0] = _loc2_._x;
  1075.                customBeadsCoordinates_tmp[_loc1_][1] = _loc2_._y;
  1076.                break;
  1077.             }
  1078.             _loc1_ = _loc1_ + 1;
  1079.          }
  1080.       }
  1081.    };
  1082.    _loc3_["bead_" + beadsCounter].onPress = function()
  1083.    {
  1084.       if(mcBead == null)
  1085.       {
  1086.          this.startDrag(false);
  1087.       }
  1088.       else
  1089.       {
  1090.          handleAddingBead();
  1091.       }
  1092.    };
  1093.    beadsCounter++;
  1094. }
  1095. function showRegistrationDialog()
  1096. {
  1097.    var _loc1_ = _root;
  1098.    levelCounter++;
  1099.    _loc1_.attachMovie("stab_screen","stab_screen1",levelCounter,{_x:-5,_y:-5});
  1100.    stab_screen1._alpha = 0;
  1101.    stab_screen1.onPress = function()
  1102.    {
  1103.       return undefined;
  1104.    };
  1105.    levelCounter++;
  1106.    _loc1_.attachMovie("register_popup","register_popup",levelCounter,{_x:183,_y:138});
  1107.    register_popup.register_no.onPress = function()
  1108.    {
  1109.       stab_screen1.removeMovieClip();
  1110.       register_popup.removeMovieClip();
  1111.       stab_screen._visible = false;
  1112.       bracelets_popup._visible = false;
  1113.       _root.mcBottle_Popup._visible = false;
  1114.    };
  1115.    register_popup.register_yes.onPress = function()
  1116.    {
  1117.       getUrl("javascript:Registration()", "");
  1118.       stab_screen1.removeMovieClip();
  1119.       register_popup.removeMovieClip();
  1120.       stab_screen._visible = false;
  1121.       bracelets_popup._visible = false;
  1122.       _root.mcBottle_Popup._visible = false;
  1123.    };
  1124.    register_popup.gs_title.onPress = function()
  1125.    {
  1126.       getUrl("http://www.girlsense.com/premium/", "_blank");
  1127.    };
  1128. }
  1129. stop();
  1130. var nickname = 0;
  1131. var uid = 0;
  1132. var premium = 0;
  1133. myURL = this._url;
  1134. uidPos = myURL.lastIndexOf("?");
  1135. premiumPos = myURL.indexOf("&");
  1136. namePos = myURL.lastIndexOf("&");
  1137. uid = myURL.substring(uidPos + Number(5),premiumPos);
  1138. premium = myURL.substring(premiumPos + Number(9),namePos);
  1139. nickname = myURL.substring(namePos + Number(10),myURL.length);
  1140. var curColorGroup = -1;
  1141. var cur_Sound;
  1142. var nPolishes = 20;
  1143. curPolishBottlesSet = 0;
  1144. nPolishBottlesSets = 5;
  1145. var levelCounter = 2;
  1146. var nNailShapes = 4;
  1147. var nailObjects = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1148. var nailObjectsDouble = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1149. var contourObjects = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1150. var highlightObjects = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1151. var tipObjects = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1152. var nailShape = 0;
  1153. var stickers = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1154. var bracelets = new Array(-1,-1);
  1155. var braceletNumbers = new Array(-1,-1);
  1156. var customBracelets = new Array(-100,-100);
  1157. var rings = new Array();
  1158. var ringNames = new Array();
  1159. var choosenRingsCoordinates = new Array();
  1160. var choosenRingsFingerPosition = new Array();
  1161. var curPolish = 0;
  1162. var curNail = 0;
  1163. var curFinger = 0;
  1164. var curSticker = 0;
  1165. var curRing = 0;
  1166. var curBracelet = 0;
  1167. var customBraceletClicked = false;
  1168. var mixedColor;
  1169. var semiTransparentTransform = null;
  1170. var polishGroup = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1171. var polishApplied = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1172. var mixedBackgrounds = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1173. var mixedColors = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1174. var nailCoordinates = new Array();
  1175. nailCoordinates.push(["277","199"]);
  1176. nailCoordinates.push(["313","177"]);
  1177. nailCoordinates.push(["345","172"]);
  1178. nailCoordinates.push(["363","207"]);
  1179. nailCoordinates.push(["359","310"]);
  1180. nailCoordinates.push(["405","309"]);
  1181. nailCoordinates.push(["413","207"]);
  1182. nailCoordinates.push(["428","173"]);
  1183. nailCoordinates.push(["457","176"]);
  1184. nailCoordinates.push(["494","199"]);
  1185. var nailLength = new Array();
  1186. nailLength.push(["16","22","21","20","19","19","20","21","21","16"]);
  1187. nailLength.push(["21","27","26","25","21","21","24","26","27","21"]);
  1188. nailLength.push(["27","32","32","30","26","26","30","32","32","27"]);
  1189. nailLength.push(["34","40","42","38","37","37","38","42","40","34"]);
  1190. var nailWidth = new Array();
  1191. nailWidth.push(["21","15","19","18","15"]);
  1192. nailWidth.push(["25","16","20","19","18"]);
  1193. nailWidth.push(["28","19","23","22","22"]);
  1194. nailWidth.push(["35","23","27","28","28"]);
  1195. var braceletCoordinates = new Array();
  1196. braceletCoordinates.push(["235","393"]);
  1197. braceletCoordinates.push(["527","413"]);
  1198. var createdBraceletCoordinates = new Array();
  1199. createdBraceletCoordinates.push(["188","428"]);
  1200. createdBraceletCoordinates.push(["536","472"]);
  1201. var choosenBraceletCoordinates = new Array();
  1202. choosenBraceletCoordinates.push(["-1","-1"]);
  1203. choosenBraceletCoordinates.push(["-1","-1"]);
  1204. var stickerCoordinates = new Array();
  1205. stickerCoordinates.push(["282","217"]);
  1206. stickerCoordinates.push(["320","197"]);
  1207. stickerCoordinates.push(["352","196"]);
  1208. stickerCoordinates.push(["368","228"]);
  1209. stickerCoordinates.push(["370","329"]);
  1210. stickerCoordinates.push(["422","338"]);
  1211. stickerCoordinates.push(["420","231"]);
  1212. stickerCoordinates.push(["437","202"]);
  1213. stickerCoordinates.push(["467","200"]);
  1214. stickerCoordinates.push(["506","221"]);
  1215. var ringCoordinates = new Array();
  1216. ringCoordinates.push(["233","290"]);
  1217. ringCoordinates.push(["264","287"]);
  1218. ringCoordinates.push(["291","298"]);
  1219. ringCoordinates.push(["316","313"]);
  1220. ringCoordinates.push(["320","372"]);
  1221. ringCoordinates.push(["455","386"]);
  1222. ringCoordinates.push(["451","331"]);
  1223. ringCoordinates.push(["479","320"]);
  1224. ringCoordinates.push(["507","308"]);
  1225. ringCoordinates.push(["539","300"]);
  1226. var mixingColorVals = new Array();
  1227. mixingColorVals.push("0x80CBE6");
  1228. mixingColorVals.push("0x389961");
  1229. mixingColorVals.push("0x737373");
  1230. mixingColorVals.push("0xFFB0A8");
  1231. mixingColorVals.push("0xA8FFCC");
  1232. mixingColorVals.push("0xFF8A40");
  1233. mixingColorVals.push("0x000000");
  1234. mixingColorVals.push("0xFFFFFF");
  1235. mixingColorVals.push("0xDC2366");
  1236. mixingColorVals.push("0xC0FFE8");
  1237. mixingColorVals.push("0xA8D4FF");
  1238. mixingColorVals.push("0xC59C94");
  1239. mixingColorVals.push("0xFF94CC");
  1240. mixingColorVals.push("0xFFD1D4");
  1241. mixingColorVals.push("0xA8D482");
  1242. mixingColorVals.push("0x6666FF");
  1243. mixingColorVals.push("0xFFBF80");
  1244. mixingColorVals.push("0xA894CC");
  1245. mixingColorVals.push("0xFFEB82");
  1246. mixingColorVals.push("0x003A8A");
  1247. mixingColorVals.push("0x9E0000");
  1248. mixingColorVals.push("0xFFD93A");
  1249. mixingColorVals.push("0xCFBEFC");
  1250. mixingColorVals.push("0xD9CCA1");
  1251. mixingColorVals.push("0x9EFF3A");
  1252. mixingColorVals.push("0x2EB0FF");
  1253. mixingColorVals.push("0xFF0000");
  1254. mixingColorVals.push("0xEBAEF3");
  1255. mixingColorVals.push("0xD9FFA6");
  1256. mixingColorVals.push("0xA81ECC");
  1257. mixingColorVals.push("0xED66C1");
  1258. mixingColorVals.push("0xFF0099");
  1259. mixingColorVals.push("0x00DCDC");
  1260. var colorGroupVals = new Array();
  1261. colorGroupVals.push(["0","255","255"]);
  1262. colorGroupVals.push(["0","0","0"]);
  1263. colorGroupVals.push(["0","255","0"]);
  1264. colorGroupVals.push(["255","0","0"]);
  1265. colorGroupVals.push(["255","255","0"]);
  1266. colorGroupVals.push(["153","51","255"]);
  1267. colorGroupVals.push(["255","70","0"]);
  1268. colorGroupVals.push(["0","0","255"]);
  1269. colorGroupVals.push(["255","204","204"]);
  1270. colorGroupVals.push(["153","0","102"]);
  1271. colorGroupVals.push(["0","0","153"]);
  1272. colorGroupVals.push(["102","102","102"]);
  1273. colorGroupVals.push(["102","153","51"]);
  1274. colorGroupVals.push(["204","51","51"]);
  1275. colorGroupVals.push(["153","0","51"]);
  1276. colorGroupVals.push(["255","204","51"]);
  1277. colorGroupVals.push(["153","0","102"]);
  1278. colorGroupVals.push(["102","153","51"]);
  1279. colorGroupVals.push(["255","153","153"]);
  1280. colorGroupVals.push(["204","102","102"]);
  1281. var handsColors = new Array("0xF8B89E","0xEEA187","0xE68C70","0xC76E51","0xFFE0D5","0xFFD8CB","0xFFCCC0","0xFFC0B3");
  1282. var curHandsColor = 5;
  1283. var curMixedBG = -1;
  1284. var curMixedColor = -1;
  1285. var curRingSet = 0;
  1286. var nRingSets = 6;
  1287. var curBraceletSet = 0;
  1288. var nBraceletSets = 7;
  1289. var curCustomBracelet2Show = -1;
  1290. var rotation;
  1291. var curY;
  1292. var curX;
  1293. var compaundDrawLevel;
  1294. levelCounter++;
  1295. _root.attachMovie("back_polishes","back_polishes",levelCounter,{_x:699,_y:64});
  1296. back_polishes._visible = false;
  1297. levelCounter++;
  1298. _root.attachMovie("color_group_0","color_group_0",levelCounter,{_x:358,_y:5});
  1299. color_group_0._visible = false;
  1300. levelCounter++;
  1301. _root.attachMovie("color_group_1","color_group_1",levelCounter,{_x:437,_y:5});
  1302. color_group_1._visible = false;
  1303. levelCounter++;
  1304. _root.attachMovie("color_group_2","color_group_2",levelCounter,{_x:520,_y:5});
  1305. color_group_2._visible = false;
  1306. levelCounter++;
  1307. _root.attachMovie("color_group_3","color_group_3",levelCounter,{_x:605,_y:5});
  1308. color_group_3._visible = false;
  1309. levelCounter++;
  1310. _root.attachMovie("color_group_4","color_group_4",levelCounter,{_x:358,_y:5});
  1311. color_group_4._visible = false;
  1312. levelCounter++;
  1313. _root.attachMovie("color_group_5","color_group_5",levelCounter,{_x:437,_y:5});
  1314. color_group_5._visible = false;
  1315. levelCounter++;
  1316. _root.attachMovie("color_group_6","color_group_6",levelCounter,{_x:520,_y:5});
  1317. color_group_6._visible = false;
  1318. levelCounter++;
  1319. _root.attachMovie("color_group_7","color_group_7",levelCounter,{_x:605,_y:5});
  1320. color_group_7._visible = false;
  1321. levelCounter++;
  1322. _root.attachMovie("color_group_8","color_group_8",levelCounter,{_x:358,_y:5});
  1323. color_group_8._visible = false;
  1324. levelCounter++;
  1325. _root.attachMovie("color_group_9","color_group_9",levelCounter,{_x:437,_y:5});
  1326. color_group_9._visible = false;
  1327. levelCounter++;
  1328. _root.attachMovie("color_group_10","color_group_10",levelCounter,{_x:520,_y:5});
  1329. color_group_10._visible = false;
  1330. levelCounter++;
  1331. _root.attachMovie("color_group_11","color_group_11",levelCounter,{_x:605,_y:5});
  1332. color_group_11._visible = false;
  1333. levelCounter++;
  1334. _root.attachMovie("color_group_12","color_group_12",levelCounter,{_x:358,_y:5});
  1335. color_group_12._visible = false;
  1336. levelCounter++;
  1337. _root.attachMovie("color_group_13","color_group_13",levelCounter,{_x:437,_y:5});
  1338. color_group_13._visible = false;
  1339. levelCounter++;
  1340. _root.attachMovie("color_group_14","color_group_14",levelCounter,{_x:520,_y:5});
  1341. color_group_14._visible = false;
  1342. levelCounter++;
  1343. _root.attachMovie("color_group_15","color_group_15",levelCounter,{_x:605,_y:5});
  1344. color_group_15._visible = false;
  1345. levelCounter++;
  1346. _root.attachMovie("color_group_16","color_group_16",levelCounter,{_x:358,_y:5});
  1347. color_group_16._visible = false;
  1348. levelCounter++;
  1349. _root.attachMovie("color_group_17","color_group_17",levelCounter,{_x:437,_y:5});
  1350. color_group_17._visible = false;
  1351. levelCounter++;
  1352. _root.attachMovie("color_group_18","color_group_18",levelCounter,{_x:520,_y:5});
  1353. color_group_18._visible = false;
  1354. levelCounter++;
  1355. _root.attachMovie("color_group_19","color_group_19",levelCounter,{_x:605,_y:5});
  1356. color_group_19._visible = false;
  1357. levelCounter++;
  1358. _root.attachMovie("polish_4","polish_4",levelCounter,{_x:373,_y:31});
  1359. polish_4._visible = false;
  1360. levelCounter++;
  1361. _root.attachMovie("polish_5","polish_5",levelCounter,{_x:452,_y:31});
  1362. polish_5._visible = false;
  1363. levelCounter++;
  1364. _root.attachMovie("polish_6","polish_6",levelCounter,{_x:536,_y:31});
  1365. polish_6._visible = false;
  1366. levelCounter++;
  1367. _root.attachMovie("polish_7","polish_7",levelCounter,{_x:619,_y:31});
  1368. polish_7._visible = false;
  1369. levelCounter++;
  1370. _root.attachMovie("polish_8","polish_8",levelCounter,{_x:373,_y:31});
  1371. polish_8._visible = false;
  1372. levelCounter++;
  1373. _root.attachMovie("polish_9","polish_9",levelCounter,{_x:452,_y:31});
  1374. polish_9._visible = false;
  1375. levelCounter++;
  1376. _root.attachMovie("polish_10","polish_10",levelCounter,{_x:536,_y:31});
  1377. polish_10._visible = false;
  1378. levelCounter++;
  1379. _root.attachMovie("polish_11","polish_11",levelCounter,{_x:619,_y:31});
  1380. polish_11._visible = false;
  1381. levelCounter++;
  1382. _root.attachMovie("polish_12","polish_12",levelCounter,{_x:373,_y:31});
  1383. polish_12._visible = false;
  1384. levelCounter++;
  1385. _root.attachMovie("polish_13","polish_13",levelCounter,{_x:452,_y:31});
  1386. polish_13._visible = false;
  1387. levelCounter++;
  1388. _root.attachMovie("polish_14","polish_14",levelCounter,{_x:536,_y:31});
  1389. polish_14._visible = false;
  1390. levelCounter++;
  1391. _root.attachMovie("polish_15","polish_15",levelCounter,{_x:619,_y:31});
  1392. polish_15._visible = false;
  1393. levelCounter++;
  1394. _root.attachMovie("polish_16","polish_16",levelCounter,{_x:373,_y:31});
  1395. polish_16._visible = false;
  1396. levelCounter++;
  1397. _root.attachMovie("polish_17","polish_17",levelCounter,{_x:452,_y:31});
  1398. polish_17._visible = false;
  1399. levelCounter++;
  1400. _root.attachMovie("polish_18","polish_18",levelCounter,{_x:536,_y:31});
  1401. polish_18._visible = false;
  1402. levelCounter++;
  1403. _root.attachMovie("polish_19","polish_19",levelCounter,{_x:619,_y:31});
  1404. polish_19._visible = false;
  1405. levelCounter++;
  1406. _root.attachMovie("bottle_popup","mcBottle_Popup",levelCounter,{_x:400,_y:250});
  1407. mcBottle_Popup._visible = false;
  1408. levelCounter++;
  1409. _root.attachMovie("stab_screen","stab_screen",levelCounter,{_x:-5,_y:-5});
  1410. stab_screen._visible = false;
  1411. levelCounter++;
  1412. _root.attachMovie("bracelets_popup","bracelets_popup",levelCounter,{_x:4,_y:-9});
  1413. bracelets_popup._visible = false;
  1414. levelCounter++;
  1415. _root.attachMovie("ring_set_1","ring_set_1",levelCounter,{_x:35,_y:171});
  1416. ring_set_1._visible = false;
  1417. levelCounter++;
  1418. _root.attachMovie("ring_set_2","ring_set_2",levelCounter,{_x:35,_y:171});
  1419. ring_set_2._visible = false;
  1420. levelCounter++;
  1421. _root.attachMovie("ring_set_3","ring_set_3",levelCounter,{_x:35,_y:171});
  1422. ring_set_3._visible = false;
  1423. levelCounter++;
  1424. _root.attachMovie("ring_set_4","ring_set_4",levelCounter,{_x:35,_y:171});
  1425. ring_set_4._visible = false;
  1426. levelCounter++;
  1427. _root.attachMovie("ring_set_5","ring_set_5",levelCounter,{_x:35,_y:171});
  1428. ring_set_5._visible = false;
  1429. levelCounter++;
  1430. _root.attachMovie("bracelet_set_1","bracelet_set_1",levelCounter,{_x:43,_y:257});
  1431. bracelet_set_1._visible = false;
  1432. levelCounter++;
  1433. _root.attachMovie("bracelet_set_2","bracelet_set_2",levelCounter,{_x:43,_y:257});
  1434. bracelet_set_2._visible = false;
  1435. levelCounter++;
  1436. _root.attachMovie("bracelet_set_3","bracelet_set_3",levelCounter,{_x:43,_y:257});
  1437. bracelet_set_3._visible = false;
  1438. levelCounter++;
  1439. _root.attachMovie("bracelet_set_4","bracelet_set_4",levelCounter,{_x:43,_y:257});
  1440. bracelet_set_4._visible = false;
  1441. levelCounter++;
  1442. _root.attachMovie("bracelet_set_5","bracelet_set_5",levelCounter,{_x:43,_y:257});
  1443. bracelet_set_5._visible = false;
  1444. levelCounter++;
  1445. _root.attachMovie("bracelet_set_6","bracelet_set_6",levelCounter,{_x:43,_y:257});
  1446. bracelet_set_6._visible = false;
  1447. levelCounter++;
  1448. _root.attachMovie("coming_soon","coming_soon",levelCounter,{_x:68,_y:99});
  1449. coming_soon._visible = false;
  1450. levelCounter++;
  1451. _root.attachMovie("polish_explanations","polish_explanations",levelCounter);
  1452. polish_explanations._visible = false;
  1453. var doDrag = false;
  1454. var ringsCounter = 0;
  1455. bg.onPress = function()
  1456. {
  1457.    releaseAll();
  1458. };
  1459. skins.skin_color_0.onPress = function()
  1460. {
  1461.    curHandsColor = 0;
  1462.    changeHandsColor();
  1463. };
  1464. skins.skin_color_1.onPress = function()
  1465. {
  1466.    curHandsColor = 1;
  1467.    changeHandsColor();
  1468. };
  1469. skins.skin_color_2.onPress = function()
  1470. {
  1471.    curHandsColor = 2;
  1472.    changeHandsColor();
  1473. };
  1474. skins.skin_color_3.onPress = function()
  1475. {
  1476.    curHandsColor = 3;
  1477.    changeHandsColor();
  1478. };
  1479. skins.skin_color_4.onPress = function()
  1480. {
  1481.    curHandsColor = 4;
  1482.    changeHandsColor();
  1483. };
  1484. skins.skin_color_5.onPress = function()
  1485. {
  1486.    curHandsColor = 5;
  1487.    changeHandsColor();
  1488. };
  1489. skins.skin_color_6.onPress = function()
  1490. {
  1491.    curHandsColor = 6;
  1492.    changeHandsColor();
  1493. };
  1494. skins.skin_color_7.onPress = function()
  1495. {
  1496.    curHandsColor = 7;
  1497.    changeHandsColor();
  1498. };
  1499. var curColorGroup = -1;
  1500. var polishExplanationsDisplayed = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
  1501. polish_0.onPress = function()
  1502. {
  1503.    colorPressed(0);
  1504. };
  1505. polish_0.onRollOver = function()
  1506. {
  1507.    colorRolledOver(0);
  1508. };
  1509. polish_1.onPress = function()
  1510. {
  1511.    colorPressed(1);
  1512. };
  1513. polish_1.onRollOver = function()
  1514. {
  1515.    colorRolledOver(1);
  1516. };
  1517. polish_2.onPress = function()
  1518. {
  1519.    colorPressed(2);
  1520. };
  1521. polish_2.onRollOver = function()
  1522. {
  1523.    colorRolledOver(2);
  1524. };
  1525. polish_3.onPress = function()
  1526. {
  1527.    colorPressed(3);
  1528. };
  1529. polish_3.onRollOver = function()
  1530. {
  1531.    colorRolledOver(3);
  1532. };
  1533. polish_4.onPress = function()
  1534. {
  1535.    colorPressed(4);
  1536. };
  1537. polish_4.onRollOver = function()
  1538. {
  1539.    colorRolledOver(4);
  1540. };
  1541. polish_5.onPress = function()
  1542. {
  1543.    colorPressed(5);
  1544. };
  1545. polish_5.onRollOver = function()
  1546. {
  1547.    colorRolledOver(5);
  1548. };
  1549. polish_6.onPress = function()
  1550. {
  1551.    colorPressed(6);
  1552. };
  1553. polish_6.onRollOver = function()
  1554. {
  1555.    colorRolledOver(6);
  1556. };
  1557. polish_7.onPress = function()
  1558. {
  1559.    colorPressed(7);
  1560. };
  1561. polish_7.onRollOver = function()
  1562. {
  1563.    colorRolledOver(7);
  1564. };
  1565. polish_8.onPress = function()
  1566. {
  1567.    colorPressed(8);
  1568. };
  1569. polish_8.onRollOver = function()
  1570. {
  1571.    colorRolledOver(8);
  1572. };
  1573. polish_9.onPress = function()
  1574. {
  1575.    colorPressed(9);
  1576. };
  1577. polish_9.onRollOver = function()
  1578. {
  1579.    colorRolledOver(9);
  1580. };
  1581. polish_10.onPress = function()
  1582. {
  1583.    colorPressed(10);
  1584. };
  1585. polish_10.onRollOver = function()
  1586. {
  1587.    colorRolledOver(10);
  1588. };
  1589. polish_11.onPress = function()
  1590. {
  1591.    colorPressed(11);
  1592. };
  1593. polish_11.onRollOver = function()
  1594. {
  1595.    colorRolledOver(11);
  1596. };
  1597. polish_12.onPress = function()
  1598. {
  1599.    colorPressed(12);
  1600. };
  1601. polish_12.onRollOver = function()
  1602. {
  1603.    colorRolledOver(12);
  1604. };
  1605. polish_13.onPress = function()
  1606. {
  1607.    colorPressed(13);
  1608. };
  1609. polish_13.onRollOver = function()
  1610. {
  1611.    colorRolledOver(13);
  1612. };
  1613. polish_14.onPress = function()
  1614. {
  1615.    colorPressed(14);
  1616. };
  1617. polish_14.onRollOver = function()
  1618. {
  1619.    colorRolledOver(14);
  1620. };
  1621. polish_15.onPress = function()
  1622. {
  1623.    colorPressed(15);
  1624. };
  1625. polish_15.onRollOver = function()
  1626. {
  1627.    colorRolledOver(15);
  1628. };
  1629. polish_16.onPress = function()
  1630. {
  1631.    colorPressed(16);
  1632. };
  1633. polish_16.onRollOver = function()
  1634. {
  1635.    colorRolledOver(16);
  1636. };
  1637. polish_17.onPress = function()
  1638. {
  1639.    colorPressed(17);
  1640. };
  1641. polish_17.onRollOver = function()
  1642. {
  1643.    colorRolledOver(17);
  1644. };
  1645. polish_18.onPress = function()
  1646. {
  1647.    colorPressed(18);
  1648. };
  1649. polish_18.onRollOver = function()
  1650. {
  1651.    colorRolledOver(18);
  1652. };
  1653. polish_19.onPress = function()
  1654. {
  1655.    colorPressed(19);
  1656. };
  1657. polish_19.onRollOver = function()
  1658. {
  1659.    colorRolledOver(19);
  1660. };
  1661. color_group_0.polish_0_0.onRollOver = function()
  1662. {
  1663.    handleRollOVerPolish(0,0);
  1664. };
  1665. color_group_0.polish_0_0.onPress = function()
  1666. {
  1667.    handleClickOnPolish(0,0);
  1668. };
  1669. color_group_0.polish_0_1.onRollOver = function()
  1670. {
  1671.    handleRollOVerPolish(0,1);
  1672. };
  1673. color_group_0.polish_0_1.onPress = function()
  1674. {
  1675.    handleClickOnPolish(0,1);
  1676. };
  1677. color_group_0.polish_0_2.onRollOver = function()
  1678. {
  1679.    handleRollOVerPolish(0,2);
  1680. };
  1681. color_group_0.polish_0_2.onPress = function()
  1682. {
  1683.    handleClickOnPolish(0,2);
  1684. };
  1685. color_group_0.polish_0_3.onRollOver = function()
  1686. {
  1687.    handleRollOVerPolish(0,3);
  1688. };
  1689. color_group_0.polish_0_3.onPress = function()
  1690. {
  1691.    handleClickOnPolish(0,3);
  1692. };
  1693. color_group_1.polish_1_0.onRollOver = function()
  1694. {
  1695.    handleRollOVerPolish(1,0);
  1696. };
  1697. color_group_1.polish_1_0.onPress = function()
  1698. {
  1699.    handleClickOnPolish(1,0);
  1700. };
  1701. color_group_1.polish_1_1.onRollOver = function()
  1702. {
  1703.    handleRollOVerPolish(1,1);
  1704. };
  1705. color_group_1.polish_1_1.onPress = function()
  1706. {
  1707.    handleClickOnPolish(1,1);
  1708. };
  1709. color_group_1.polish_1_2.onRollOver = function()
  1710. {
  1711.    handleRollOVerPolish(1,2);
  1712. };
  1713. color_group_1.polish_1_2.onPress = function()
  1714. {
  1715.    handleClickOnPolish(1,2);
  1716. };
  1717. color_group_1.polish_1_3.onRollOver = function()
  1718. {
  1719.    handleRollOVerPolish(1,3);
  1720. };
  1721. color_group_1.polish_1_3.onPress = function()
  1722. {
  1723.    handleClickOnPolish(1,3);
  1724. };
  1725. color_group_2.polish_2_0.onRollOver = function()
  1726. {
  1727.    handleRollOVerPolish(2,0);
  1728. };
  1729. color_group_2.polish_2_0.onPress = function()
  1730. {
  1731.    handleClickOnPolish(2,0);
  1732. };
  1733. color_group_2.polish_2_1.onRollOver = function()
  1734. {
  1735.    handleRollOVerPolish(2,1);
  1736. };
  1737. color_group_2.polish_2_1.onPress = function()
  1738. {
  1739.    handleClickOnPolish(2,1);
  1740. };
  1741. color_group_2.polish_2_2.onRollOver = function()
  1742. {
  1743.    handleRollOVerPolish(2,2);
  1744. };
  1745. color_group_2.polish_2_2.onPress = function()
  1746. {
  1747.    handleClickOnPolish(2,2);
  1748. };
  1749. color_group_2.polish_2_3.onRollOver = function()
  1750. {
  1751.    handleRollOVerPolish(2,3);
  1752. };
  1753. color_group_2.polish_2_3.onPress = function()
  1754. {
  1755.    handleClickOnPolish(2,3);
  1756. };
  1757. color_group_3.polish_3_0.onRollOver = function()
  1758. {
  1759.    handleRollOVerPolish(3,0);
  1760. };
  1761. color_group_3.polish_3_0.onPress = function()
  1762. {
  1763.    handleClickOnPolish(3,0);
  1764. };
  1765. color_group_3.polish_3_1.onRollOver = function()
  1766. {
  1767.    handleRollOVerPolish(3,1);
  1768. };
  1769. color_group_3.polish_3_1.onPress = function()
  1770. {
  1771.    handleClickOnPolish(3,1);
  1772. };
  1773. color_group_3.polish_3_2.onRollOver = function()
  1774. {
  1775.    handleRollOVerPolish(3,2);
  1776. };
  1777. color_group_3.polish_3_2.onPress = function()
  1778. {
  1779.    handleClickOnPolish(3,2);
  1780. };
  1781. color_group_3.polish_3_3.onRollOver = function()
  1782. {
  1783.    handleRollOVerPolish(3,3);
  1784. };
  1785. color_group_3.polish_3_3.onPress = function()
  1786. {
  1787.    handleClickOnPolish(3,3);
  1788. };
  1789. color_group_4.polish_4_0.onRollOver = function()
  1790. {
  1791.    handleRollOVerPolish(4,0);
  1792. };
  1793. color_group_4.polish_4_0.onPress = function()
  1794. {
  1795.    handleClickOnPolish(4,0);
  1796. };
  1797. color_group_4.polish_4_1.onRollOver = function()
  1798. {
  1799.    handleRollOVerPolish(4,1);
  1800. };
  1801. color_group_4.polish_4_1.onPress = function()
  1802. {
  1803.    handleClickOnPolish(4,1);
  1804. };
  1805. color_group_4.polish_4_2.onRollOver = function()
  1806. {
  1807.    handleRollOVerPolish(4,2);
  1808. };
  1809. color_group_4.polish_4_2.onPress = function()
  1810. {
  1811.    handleClickOnPolish(4,2);
  1812. };
  1813. color_group_4.polish_4_3.onRollOver = function()
  1814. {
  1815.    handleRollOVerPolish(4,3);
  1816. };
  1817. color_group_4.polish_4_3.onPress = function()
  1818. {
  1819.    handleClickOnPolish(4,3);
  1820. };
  1821. color_group_5.polish_5_0.onRollOver = function()
  1822. {
  1823.    handleRollOVerPolish(5,0);
  1824. };
  1825. color_group_5.polish_5_0.onPress = function()
  1826. {
  1827.    handleClickOnPolish(5,0);
  1828. };
  1829. color_group_5.polish_5_1.onRollOver = function()
  1830. {
  1831.    handleRollOVerPolish(5,1);
  1832. };
  1833. color_group_5.polish_5_1.onPress = function()
  1834. {
  1835.    handleClickOnPolish(5,1);
  1836. };
  1837. color_group_5.polish_5_2.onRollOver = function()
  1838. {
  1839.    handleRollOVerPolish(5,2);
  1840. };
  1841. color_group_5.polish_5_2.onPress = function()
  1842. {
  1843.    handleClickOnPolish(5,2);
  1844. };
  1845. color_group_5.polish_5_3.onRollOver = function()
  1846. {
  1847.    handleRollOVerPolish(5,3);
  1848. };
  1849. color_group_5.polish_5_3.onPress = function()
  1850. {
  1851.    handleClickOnPolish(5,3);
  1852. };
  1853. color_group_6.polish_6_0.onRollOver = function()
  1854. {
  1855.    handleRollOVerPolish(6,0);
  1856. };
  1857. color_group_6.polish_6_0.onPress = function()
  1858. {
  1859.    handleClickOnPolish(6,0);
  1860. };
  1861. color_group_6.polish_6_1.onRollOver = function()
  1862. {
  1863.    handleRollOVerPolish(6,1);
  1864. };
  1865. color_group_6.polish_6_1.onPress = function()
  1866. {
  1867.    handleClickOnPolish(6,1);
  1868. };
  1869. color_group_6.polish_6_2.onRollOver = function()
  1870. {
  1871.    handleRollOVerPolish(6,2);
  1872. };
  1873. color_group_6.polish_6_2.onPress = function()
  1874. {
  1875.    handleClickOnPolish(6,2);
  1876. };
  1877. color_group_6.polish_6_3.onRollOver = function()
  1878. {
  1879.    handleRollOVerPolish(6,3);
  1880. };
  1881. color_group_6.polish_6_3.onPress = function()
  1882. {
  1883.    handleClickOnPolish(6,3);
  1884. };
  1885. color_group_7.polish_7_0.onRollOver = function()
  1886. {
  1887.    handleRollOVerPolish(7,0);
  1888. };
  1889. color_group_7.polish_7_0.onPress = function()
  1890. {
  1891.    handleClickOnPolish(7,0);
  1892. };
  1893. color_group_7.polish_7_1.onRollOver = function()
  1894. {
  1895.    handleRollOVerPolish(7,1);
  1896. };
  1897. color_group_7.polish_7_1.onPress = function()
  1898. {
  1899.    handleClickOnPolish(7,1);
  1900. };
  1901. color_group_7.polish_7_2.onRollOver = function()
  1902. {
  1903.    handleRollOVerPolish(7,2);
  1904. };
  1905. color_group_7.polish_7_2.onPress = function()
  1906. {
  1907.    handleClickOnPolish(7,2);
  1908. };
  1909. color_group_7.polish_7_3.onRollOver = function()
  1910. {
  1911.    handleRollOVerPolish(7,3);
  1912. };
  1913. color_group_7.polish_7_3.onPress = function()
  1914. {
  1915.    handleClickOnPolish(7,3);
  1916. };
  1917. color_group_8.polish_8_0.onRollOver = function()
  1918. {
  1919.    handleRollOVerPolish(8,0);
  1920. };
  1921. color_group_8.polish_8_0.onPress = function()
  1922. {
  1923.    handleClickOnPolish(8,0);
  1924. };
  1925. color_group_8.polish_8_1.onRollOver = function()
  1926. {
  1927.    handleRollOVerPolish(8,1);
  1928. };
  1929. color_group_8.polish_8_1.onPress = function()
  1930. {
  1931.    handleClickOnPolish(8,1);
  1932. };
  1933. color_group_8.polish_8_2.onRollOver = function()
  1934. {
  1935.    handleRollOVerPolish(8,2);
  1936. };
  1937. color_group_8.polish_8_2.onPress = function()
  1938. {
  1939.    handleClickOnPolish(8,2);
  1940. };
  1941. color_group_8.polish_8_3.onRollOver = function()
  1942. {
  1943.    handleRollOVerPolish(8,3);
  1944. };
  1945. color_group_8.polish_8_3.onPress = function()
  1946. {
  1947.    handleClickOnPolish(8,3);
  1948. };
  1949. color_group_9.polish_9_0.onRollOver = function()
  1950. {
  1951.    handleRollOVerPolish(9,0);
  1952. };
  1953. color_group_9.polish_9_0.onPress = function()
  1954. {
  1955.    handleClickOnPolish(9,0);
  1956. };
  1957. color_group_9.polish_9_1.onRollOver = function()
  1958. {
  1959.    handleRollOVerPolish(9,1);
  1960. };
  1961. color_group_9.polish_9_1.onPress = function()
  1962. {
  1963.    handleClickOnPolish(9,1);
  1964. };
  1965. color_group_9.polish_9_2.onRollOver = function()
  1966. {
  1967.    handleRollOVerPolish(9,2);
  1968. };
  1969. color_group_9.polish_9_2.onPress = function()
  1970. {
  1971.    handleClickOnPolish(9,2);
  1972. };
  1973. color_group_9.polish_9_3.onRollOver = function()
  1974. {
  1975.    handleRollOVerPolish(9,3);
  1976. };
  1977. color_group_9.polish_9_3.onPress = function()
  1978. {
  1979.    handleClickOnPolish(9,3);
  1980. };
  1981. color_group_10.polish_10_0.onRollOver = function()
  1982. {
  1983.    handleRollOVerPolish(10,0);
  1984. };
  1985. color_group_10.polish_10_0.onPress = function()
  1986. {
  1987.    handleClickOnPolish(10,0);
  1988. };
  1989. color_group_10.polish_10_1.onRollOver = function()
  1990. {
  1991.    handleRollOVerPolish(10,1);
  1992. };
  1993. color_group_10.polish_10_1.onPress = function()
  1994. {
  1995.    handleClickOnPolish(10,1);
  1996. };
  1997. color_group_10.polish_10_2.onRollOver = function()
  1998. {
  1999.    handleRollOVerPolish(10,2);
  2000. };
  2001. color_group_10.polish_10_2.onPress = function()
  2002. {
  2003.    handleClickOnPolish(10,2);
  2004. };
  2005. color_group_10.polish_10_3.onRollOver = function()
  2006. {
  2007.    handleRollOVerPolish(10,3);
  2008. };
  2009. color_group_10.polish_10_3.onPress = function()
  2010. {
  2011.    handleClickOnPolish(10,3);
  2012. };
  2013. color_group_11.polish_11_0.onRollOver = function()
  2014. {
  2015.    handleRollOVerPolish(11,0);
  2016. };
  2017. color_group_11.polish_11_0.onPress = function()
  2018. {
  2019.    handleClickOnPolish(11,0);
  2020. };
  2021. color_group_11.polish_11_1.onRollOver = function()
  2022. {
  2023.    handleRollOVerPolish(11,1);
  2024. };
  2025. color_group_11.polish_11_1.onPress = function()
  2026. {
  2027.    handleClickOnPolish(11,1);
  2028. };
  2029. color_group_11.polish_11_2.onRollOver = function()
  2030. {
  2031.    handleRollOVerPolish(11,2);
  2032. };
  2033. color_group_11.polish_11_2.onPress = function()
  2034. {
  2035.    handleClickOnPolish(11,2);
  2036. };
  2037. color_group_11.polish_11_3.onRollOver = function()
  2038. {
  2039.    handleRollOVerPolish(11,3);
  2040. };
  2041. color_group_11.polish_11_3.onPress = function()
  2042. {
  2043.    handleClickOnPolish(11,3);
  2044. };
  2045. color_group_12.polish_12_0.onRollOver = function()
  2046. {
  2047.    handleRollOVerPolish(12,0);
  2048. };
  2049. color_group_12.polish_12_0.onPress = function()
  2050. {
  2051.    handleClickOnPolish(12,0);
  2052. };
  2053. color_group_12.polish_12_1.onRollOver = function()
  2054. {
  2055.    handleRollOVerPolish(12,1);
  2056. };
  2057. color_group_12.polish_12_1.onPress = function()
  2058. {
  2059.    handleClickOnPolish(12,1);
  2060. };
  2061. color_group_12.polish_12_2.onRollOver = function()
  2062. {
  2063.    handleRollOVerPolish(12,2);
  2064. };
  2065. color_group_12.polish_12_2.onPress = function()
  2066. {
  2067.    handleClickOnPolish(12,2);
  2068. };
  2069. color_group_12.polish_12_3.onRollOver = function()
  2070. {
  2071.    handleRollOVerPolish(12,3);
  2072. };
  2073. color_group_12.polish_12_3.onPress = function()
  2074. {
  2075.    handleClickOnPolish(12,3);
  2076. };
  2077. color_group_13.polish_13_0.onRollOver = function()
  2078. {
  2079.    handleRollOVerPolish(13,0);
  2080. };
  2081. color_group_13.polish_13_0.onPress = function()
  2082. {
  2083.    handleClickOnPolish(13,0);
  2084. };
  2085. color_group_13.polish_13_1.onRollOver = function()
  2086. {
  2087.    handleRollOVerPolish(13,1);
  2088. };
  2089. color_group_13.polish_13_1.onPress = function()
  2090. {
  2091.    handleClickOnPolish(13,1);
  2092. };
  2093. color_group_13.polish_13_2.onRollOver = function()
  2094. {
  2095.    handleRollOVerPolish(13,2);
  2096. };
  2097. color_group_13.polish_13_2.onPress = function()
  2098. {
  2099.    handleClickOnPolish(13,2);
  2100. };
  2101. color_group_13.polish_13_3.onRollOver = function()
  2102. {
  2103.    handleRollOVerPolish(13,3);
  2104. };
  2105. color_group_13.polish_13_3.onPress = function()
  2106. {
  2107.    handleClickOnPolish(13,3);
  2108. };
  2109. color_group_14.polish_14_0.onRollOver = function()
  2110. {
  2111.    handleRollOVerPolish(14,0);
  2112. };
  2113. color_group_14.polish_14_0.onPress = function()
  2114. {
  2115.    handleClickOnPolish(14,0);
  2116. };
  2117. color_group_14.polish_14_1.onRollOver = function()
  2118. {
  2119.    handleRollOVerPolish(14,1);
  2120. };
  2121. color_group_14.polish_14_1.onPress = function()
  2122. {
  2123.    handleClickOnPolish(14,1);
  2124. };
  2125. color_group_14.polish_14_2.onRollOver = function()
  2126. {
  2127.    handleRollOVerPolish(14,2);
  2128. };
  2129. color_group_14.polish_14_2.onPress = function()
  2130. {
  2131.    handleClickOnPolish(14,2);
  2132. };
  2133. color_group_14.polish_14_3.onRollOver = function()
  2134. {
  2135.    handleRollOVerPolish(14,3);
  2136. };
  2137. color_group_14.polish_14_3.onPress = function()
  2138. {
  2139.    handleClickOnPolish(14,3);
  2140. };
  2141. color_group_15.polish_15_0.onRollOver = function()
  2142. {
  2143.    handleRollOVerPolish(15,0);
  2144. };
  2145. color_group_15.polish_15_0.onPress = function()
  2146. {
  2147.    handleClickOnPolish(15,0);
  2148. };
  2149. color_group_15.polish_15_1.onRollOver = function()
  2150. {
  2151.    handleRollOVerPolish(15,1);
  2152. };
  2153. color_group_15.polish_15_1.onPress = function()
  2154. {
  2155.    handleClickOnPolish(15,1);
  2156. };
  2157. color_group_15.polish_15_2.onRollOver = function()
  2158. {
  2159.    handleRollOVerPolish(15,2);
  2160. };
  2161. color_group_15.polish_15_2.onPress = function()
  2162. {
  2163.    handleClickOnPolish(15,2);
  2164. };
  2165. color_group_15.polish_15_3.onRollOver = function()
  2166. {
  2167.    handleRollOVerPolish(15,3);
  2168. };
  2169. color_group_15.polish_15_3.onPress = function()
  2170. {
  2171.    handleClickOnPolish(15,3);
  2172. };
  2173. color_group_16.polish_16_0.onRollOver = function()
  2174. {
  2175.    handleRollOVerPolish(16,0);
  2176. };
  2177. color_group_16.polish_16_0.onPress = function()
  2178. {
  2179.    handleClickOnPolish(16,0);
  2180. };
  2181. color_group_16.polish_16_1.onRollOver = function()
  2182. {
  2183.    handleRollOVerPolish(16,1);
  2184. };
  2185. color_group_16.polish_16_1.onPress = function()
  2186. {
  2187.    handleClickOnPolish(16,1);
  2188. };
  2189. color_group_16.polish_16_2.onRollOver = function()
  2190. {
  2191.    handleRollOVerPolish(16,2);
  2192. };
  2193. color_group_16.polish_16_2.onPress = function()
  2194. {
  2195.    handleClickOnPolish(16,2);
  2196. };
  2197. color_group_16.polish_16_3.onRollOver = function()
  2198. {
  2199.    handleRollOVerPolish(16,3);
  2200. };
  2201. color_group_16.polish_16_3.onPress = function()
  2202. {
  2203.    handleClickOnPolish(16,3);
  2204. };
  2205. color_group_17.polish_17_0.onRollOver = function()
  2206. {
  2207.    handleRollOVerPolish(17,0);
  2208. };
  2209. color_group_17.polish_17_0.onPress = function()
  2210. {
  2211.    handleClickOnPolish(17,0);
  2212. };
  2213. color_group_17.polish_17_1.onRollOver = function()
  2214. {
  2215.    handleRollOVerPolish(17,1);
  2216. };
  2217. color_group_17.polish_17_1.onPress = function()
  2218. {
  2219.    handleClickOnPolish(17,1);
  2220. };
  2221. color_group_17.polish_17_2.onRollOver = function()
  2222. {
  2223.    handleRollOVerPolish(17,2);
  2224. };
  2225. color_group_17.polish_17_2.onPress = function()
  2226. {
  2227.    handleClickOnPolish(17,2);
  2228. };
  2229. color_group_17.polish_17_3.onRollOver = function()
  2230. {
  2231.    handleRollOVerPolish(17,3);
  2232. };
  2233. color_group_17.polish_17_3.onPress = function()
  2234. {
  2235.    handleClickOnPolish(17,3);
  2236. };
  2237. color_group_18.polish_18_0.onRollOver = function()
  2238. {
  2239.    handleRollOVerPolish(18,0);
  2240. };
  2241. color_group_18.polish_18_0.onPress = function()
  2242. {
  2243.    handleClickOnPolish(18,0);
  2244. };
  2245. color_group_18.polish_18_1.onRollOver = function()
  2246. {
  2247.    handleRollOVerPolish(18,1);
  2248. };
  2249. color_group_18.polish_18_1.onPress = function()
  2250. {
  2251.    handleClickOnPolish(18,1);
  2252. };
  2253. color_group_18.polish_18_2.onRollOver = function()
  2254. {
  2255.    handleRollOVerPolish(18,2);
  2256. };
  2257. color_group_18.polish_18_2.onPress = function()
  2258. {
  2259.    handleClickOnPolish(18,2);
  2260. };
  2261. color_group_18.polish_18_3.onRollOver = function()
  2262. {
  2263.    handleRollOVerPolish(18,3);
  2264. };
  2265. color_group_18.polish_18_3.onPress = function()
  2266. {
  2267.    handleClickOnPolish(18,3);
  2268. };
  2269. color_group_19.polish_19_0.onRollOver = function()
  2270. {
  2271.    handleRollOVerPolish(19,0);
  2272. };
  2273. color_group_19.polish_19_0.onPress = function()
  2274. {
  2275.    handleClickOnPolish(19,0);
  2276. };
  2277. color_group_19.polish_19_1.onRollOver = function()
  2278. {
  2279.    handleRollOVerPolish(19,1);
  2280. };
  2281. color_group_19.polish_19_1.onPress = function()
  2282. {
  2283.    handleClickOnPolish(19,1);
  2284. };
  2285. color_group_19.polish_19_2.onRollOver = function()
  2286. {
  2287.    handleRollOVerPolish(19,2);
  2288. };
  2289. color_group_19.polish_19_2.onPress = function()
  2290. {
  2291.    handleClickOnPolish(19,2);
  2292. };
  2293. color_group_19.polish_19_3.onRollOver = function()
  2294. {
  2295.    handleRollOVerPolish(19,3);
  2296. };
  2297. color_group_19.polish_19_3.onPress = function()
  2298. {
  2299.    handleClickOnPolish(19,3);
  2300. };
  2301. nail_0.onPress = function()
  2302. {
  2303.    releaseRing();
  2304.    curNail = 0;
  2305.    handleClickOnNail();
  2306. };
  2307. nail_1.onPress = function()
  2308. {
  2309.    releaseRing();
  2310.    curNail = 1;
  2311.    handleClickOnNail();
  2312. };
  2313. nail_2.onPress = function()
  2314. {
  2315.    releaseRing();
  2316.    curNail = 2;
  2317.    handleClickOnNail();
  2318. };
  2319. nail_3.onPress = function()
  2320. {
  2321.    releaseRing();
  2322.    curNail = 3;
  2323.    handleClickOnNail();
  2324. };
  2325. nail_4.onPress = function()
  2326. {
  2327.    releaseRing();
  2328.    curNail = 4;
  2329.    handleClickOnNail();
  2330. };
  2331. nail_5.onPress = function()
  2332. {
  2333.    releaseRing();
  2334.    curNail = 5;
  2335.    handleClickOnNail();
  2336. };
  2337. nail_6.onPress = function()
  2338. {
  2339.    releaseRing();
  2340.    curNail = 6;
  2341.    handleClickOnNail();
  2342. };
  2343. nail_7.onPress = function()
  2344. {
  2345.    releaseRing();
  2346.    curNail = 7;
  2347.    handleClickOnNail();
  2348. };
  2349. nail_8.onPress = function()
  2350. {
  2351.    releaseRing();
  2352.    curNail = 8;
  2353.    handleClickOnNail();
  2354. };
  2355. nail_9.onPress = function()
  2356. {
  2357.    releaseRing();
  2358.    curNail = 9;
  2359.    handleClickOnNail();
  2360. };
  2361. finger_0.onPress = function()
  2362. {
  2363.    curFinger = 0;
  2364.    handleClickOnFinger();
  2365. };
  2366. finger_1.onPress = function()
  2367. {
  2368.    curFinger = 1;
  2369.    handleClickOnFinger();
  2370. };
  2371. finger_2.onPress = function()
  2372. {
  2373.    curFinger = 2;
  2374.    handleClickOnFinger();
  2375. };
  2376. finger_3.onPress = function()
  2377. {
  2378.    curFinger = 3;
  2379.    handleClickOnFinger();
  2380. };
  2381. finger_4.onPress = function()
  2382. {
  2383.    curFinger = 4;
  2384.    handleClickOnFinger();
  2385. };
  2386. finger_5.onPress = function()
  2387. {
  2388.    curFinger = 5;
  2389.    handleClickOnFinger();
  2390. };
  2391. finger_6.onPress = function()
  2392. {
  2393.    curFinger = 6;
  2394.    handleClickOnFinger();
  2395. };
  2396. finger_7.onPress = function()
  2397. {
  2398.    curFinger = 7;
  2399.    handleClickOnFinger();
  2400. };
  2401. finger_8.onPress = function()
  2402. {
  2403.    curFinger = 8;
  2404.    handleClickOnFinger();
  2405. };
  2406. finger_9.onPress = function()
  2407. {
  2408.    curFinger = 9;
  2409.    handleClickOnFinger();
  2410. };
  2411. left_hand.onPress = function()
  2412. {
  2413.    handleClickOnHands(0);
  2414. };
  2415. right_hand.onPress = function()
  2416. {
  2417.    handleClickOnHands(1);
  2418. };
  2419. aaa.onPress = function()
  2420. {
  2421.    var _loc1_ = _root;
  2422.    if(mcBottle_Popup._visible != true)
  2423.    {
  2424.       curColorGroup = -1;
  2425.       curPolish = -1;
  2426.       releaseAll();
  2427.       levelCounter++;
  2428.       _loc1_.attachMovie("remover","mcRemover",levelCounter,{_x:_loc1_._xmouse - 17,_y:_loc1_._ymouse - 17});
  2429.       mcRemover.onMouseMove = function()
  2430.       {
  2431.          this._x = _root._xmouse - 17;
  2432.          this._y = _root._ymouse - 17;
  2433.          updateAfterEvent();
  2434.       };
  2435.       cur_Sound = new Sound();
  2436.       cur_Sound.attachSound("bottle_rollover.mp3");
  2437.       cur_Sound.start();
  2438.    }
  2439. };
  2440. aaa.onRollOver = function()
  2441. {
  2442.    this.gotoAndStop(2);
  2443. };
  2444. aaa.onRollOut = function()
  2445. {
  2446.    this.gotoAndStop(1);
  2447. };
  2448. back_polishes.onPress = function()
  2449. {
  2450.    var _loc3_ = _root;
  2451.    releaseAll();
  2452.    cur_Sound = new Sound();
  2453.    cur_Sound.attachSound("buttons.mp3");
  2454.    cur_Sound.start();
  2455.    var _loc1_ = 0;
  2456.    while(_loc1_ < 4)
  2457.    {
  2458.       var _loc2_ = "polish_" + Number(curPolishBottlesSet * 4 + _loc1_);
  2459.       _loc3_[_loc2_]._visible = false;
  2460.       _loc1_ = _loc1_ + 1;
  2461.    }
  2462.    curPolishBottlesSet--;
  2463.    _loc1_ = 0;
  2464.    while(_loc1_ < 4)
  2465.    {
  2466.       _loc2_ = "polish_" + Number(curPolishBottlesSet * 4 + _loc1_);
  2467.       _loc3_[_loc2_]._visible = true;
  2468.       _loc1_ = _loc1_ + 1;
  2469.    }
  2470.    if(curPolishBottlesSet == 0)
  2471.    {
  2472.       more_polishes._visible = true;
  2473.       this._visible = false;
  2474.    }
  2475. };
  2476. more_polishes.onPress = function()
  2477. {
  2478.    var _loc3_ = _root;
  2479.    if(mcBottle_Popup._visible != true)
  2480.    {
  2481.       releaseAll();
  2482.       cur_Sound = new Sound();
  2483.       cur_Sound.attachSound("buttons.mp3");
  2484.       cur_Sound.start();
  2485.       var _loc1_ = 0;
  2486.       while(_loc1_ < 4)
  2487.       {
  2488.          var _loc2_ = "polish_" + Number(curPolishBottlesSet * 4 + _loc1_);
  2489.          _loc3_[_loc2_]._visible = false;
  2490.          _loc1_ = _loc1_ + 1;
  2491.       }
  2492.       curPolishBottlesSet++;
  2493.       _loc1_ = 0;
  2494.       while(_loc1_ < 4)
  2495.       {
  2496.          _loc2_ = "polish_" + Number(curPolishBottlesSet * 4 + _loc1_);
  2497.          _loc3_[_loc2_]._visible = true;
  2498.          _loc1_ = _loc1_ + 1;
  2499.       }
  2500.       if(curPolishBottlesSet == nPolishBottlesSets - 1)
  2501.       {
  2502.          back_polishes._visible = true;
  2503.          back_polishes._x = 699;
  2504.          back_polishes._y = 64;
  2505.          this._visible = false;
  2506.       }
  2507.    }
  2508. };
  2509. more_rings.onPress = function()
  2510. {
  2511.    if(mcBottle_Popup._visible != true)
  2512.    {
  2513.       releaseAll();
  2514.       cur_Sound = new Sound();
  2515.       cur_Sound.attachSound("buttons.mp3");
  2516.       cur_Sound.start();
  2517.       var _loc1_ = "ring_set_" + curRingSet;
  2518.       _root[_loc1_]._visible = false;
  2519.       curRingSet++;
  2520.       if(curRingSet == nRingSets)
  2521.       {
  2522.          curRingSet = 0;
  2523.       }
  2524.       _loc1_ = "ring_set_" + curRingSet;
  2525.       _root[_loc1_]._visible = true;
  2526.    }
  2527. };
  2528. go_pedicure.onRollOver = function()
  2529. {
  2530.    coming_soon._visible = true;
  2531.    coming_soon._x = 191;
  2532.    coming_soon._y = 45;
  2533. };
  2534. go_pedicure.onPress = function()
  2535. {
  2536.    coming_soon._visible = true;
  2537.    coming_soon._x = 191;
  2538.    coming_soon._y = 45;
  2539. };
  2540. go_pedicure.onRollOut = function()
  2541. {
  2542.    coming_soon._visible = false;
  2543. };
  2544. create_ring.onRollOver = function()
  2545. {
  2546.    if(mcBottle_Popup._visible == true)
  2547.    {
  2548.       return undefined;
  2549.    }
  2550.    coming_soon._visible = true;
  2551.    coming_soon._x = 68;
  2552.    coming_soon._y = 99;
  2553. };
  2554. create_ring.onPress = function()
  2555. {
  2556.    if(mcBottle_Popup._visible == true)
  2557.    {
  2558.       return undefined;
  2559.    }
  2560.    coming_soon._visible = true;
  2561.    coming_soon._x = 68;
  2562.    coming_soon._y = 99;
  2563. };
  2564. create_ring.onRollOut = function()
  2565. {
  2566.    coming_soon._visible = false;
  2567. };
  2568. create_bracelet.onPress = function()
  2569. {
  2570.    if(mcBottle_Popup._visible == true)
  2571.    {
  2572.       return undefined;
  2573.    }
  2574.    releaseAll();
  2575.    cur_Sound = new Sound();
  2576.    cur_Sound.attachSound("buttons.mp3");
  2577.    cur_Sound.start();
  2578.    stab_screen._visible = true;
  2579.    levelCounter++;
  2580.    stab_screen.swapDepths(levelCounter);
  2581.    bracelets_popup._visible = true;
  2582.    levelCounter++;
  2583.    bracelets_popup.swapDepths(levelCounter);
  2584.    if(premium == 0)
  2585.    {
  2586.       showRegistrationDialog();
  2587.    }
  2588.    if(new_label != null)
  2589.    {
  2590.       new_label.removeMovieClip();
  2591.    }
  2592.    initBraceletsPopup();
  2593. };
  2594. more_bracelets.onPress = function()
  2595. {
  2596.    if(mcBottle_Popup._visible == true)
  2597.    {
  2598.       return undefined;
  2599.    }
  2600.    releaseAll();
  2601.    cur_Sound = new Sound();
  2602.    cur_Sound.attachSound("buttons.mp3");
  2603.    cur_Sound.start();
  2604.    _root["bracelet_set_" + curBraceletSet]._visible = false;
  2605.    curBraceletSet++;
  2606.    if(curBraceletSet >= nBraceletSets)
  2607.    {
  2608.       if(customBracelet.length > 0)
  2609.       {
  2610.          curCustomBracelet2Show++;
  2611.          if(curCustomBracelet2Show >= customBracelet.length)
  2612.          {
  2613.             curBraceletSet = 0;
  2614.             curCustomBracelet2Show = -1;
  2615.             showBracelet();
  2616.          }
  2617.          else
  2618.          {
  2619.             showCustomBracelet();
  2620.          }
  2621.       }
  2622.       else
  2623.       {
  2624.          curBraceletSet = 0;
  2625.          showBracelet();
  2626.       }
  2627.    }
  2628.    else
  2629.    {
  2630.       showBracelet();
  2631.    }
  2632. };
  2633. make_polish.onPress = function()
  2634. {
  2635.    openMixPopUp();
  2636.    cur_Sound = new Sound();
  2637.    cur_Sound.attachSound("buttons.mp3");
  2638.    cur_Sound.start();
  2639. };
  2640. empty_bottle.onPress = function()
  2641. {
  2642.    var _loc1_ = _root;
  2643.    var _loc2_ = this;
  2644.    if(curMixedBG != -1 || curMixedColor != -1)
  2645.    {
  2646.       if(mcBrushMix != null)
  2647.       {
  2648.          mcBrushMix.removeMovieClip();
  2649.       }
  2650.       if(mcBrush != null)
  2651.       {
  2652.          mcBrush.removeMovieClip();
  2653.       }
  2654.       levelCounter++;
  2655.       _loc1_.attachMovie("brush","mcBrushMix",levelCounter,{_x:_loc1_._xmouse,_y:0});
  2656.       mcBrushMix.onMouseMove = function()
  2657.       {
  2658.          var _loc1_ = this;
  2659.          _loc1_._x = _root._xmouse;
  2660.          _loc1_._y = _root._ymouse - _loc1_._height;
  2661.          updateAfterEvent();
  2662.       };
  2663.       cap._visible = false;
  2664.    }
  2665.    else
  2666.    {
  2667.       openMixPopUp();
  2668.    }
  2669. };
  2670. mcBottle_Popup.ok_btn.onPress = function()
  2671. {
  2672.    var _loc1_ = _root;
  2673.    var _loc2_ = this;
  2674.    cur_Sound = new Sound();
  2675.    cur_Sound.attachSound("buttons.mp3");
  2676.    cur_Sound.start();
  2677.    _loc1_.mcBottle_Popup._visible = false;
  2678.    drawSmallBottle();
  2679.    if(curMixedBG != -1 && curMixedColor != -1)
  2680.    {
  2681.       levelCounter++;
  2682.       _loc1_.attachMovie("brush","mcBrushMix",levelCounter,{_x:_loc1_._xmouse,_y:0});
  2683.       mcBrushMix.onMouseMove = function()
  2684.       {
  2685.          var _loc1_ = this;
  2686.          _loc1_._x = _root._xmouse;
  2687.          _loc1_._y = _root._ymouse - _loc1_._height;
  2688.          updateAfterEvent();
  2689.       };
  2690.       cap._visible = false;
  2691.    }
  2692.    else
  2693.    {
  2694.       levelCounter++;
  2695.       cap.swapDepths(levelCounter);
  2696.    }
  2697. };
  2698. var theOldColor;
  2699. var theNewColor;
  2700. mcBottle_Popup.bg_colors.bg_color_0.onPress = function()
  2701. {
  2702.    changeColor(0);
  2703. };
  2704. mcBottle_Popup.bg_colors.bg_color_1.onPress = function()
  2705. {
  2706.    changeColor(1);
  2707. };
  2708. mcBottle_Popup.bg_colors.bg_color_2.onPress = function()
  2709. {
  2710.    changeColor(2);
  2711. };
  2712. mcBottle_Popup.bg_colors.bg_color_3.onPress = function()
  2713. {
  2714.    changeColor(3);
  2715. };
  2716. mcBottle_Popup.bg_colors.bg_color_4.onPress = function()
  2717. {
  2718.    changeColor(4);
  2719. };
  2720. mcBottle_Popup.bg_colors.bg_color_5.onPress = function()
  2721. {
  2722.    changeColor(5);
  2723. };
  2724. mcBottle_Popup.bg_colors.bg_color_6.onPress = function()
  2725. {
  2726.    changeColor(6);
  2727. };
  2728. mcBottle_Popup.bg_colors.bg_color_7.onPress = function()
  2729. {
  2730.    changeColor(7);
  2731. };
  2732. mcBottle_Popup.bg_colors.bg_color_8.onPress = function()
  2733. {
  2734.    changeColor(8);
  2735. };
  2736. mcBottle_Popup.bg_colors.bg_color_9.onPress = function()
  2737. {
  2738.    changeColor(9);
  2739. };
  2740. mcBottle_Popup.bg_colors.bg_color_10.onPress = function()
  2741. {
  2742.    changeColor(10);
  2743. };
  2744. mcBottle_Popup.bg_colors.bg_color_11.onPress = function()
  2745. {
  2746.    changeColor(11);
  2747. };
  2748. mcBottle_Popup.bg_colors.bg_color_12.onPress = function()
  2749. {
  2750.    changeColor(12);
  2751. };
  2752. mcBottle_Popup.bg_colors.bg_color_13.onPress = function()
  2753. {
  2754.    changeColor(13);
  2755. };
  2756. mcBottle_Popup.bg_colors.bg_color_14.onPress = function()
  2757. {
  2758.    changeColor(14);
  2759. };
  2760. mcBottle_Popup.bg_colors.bg_color_15.onPress = function()
  2761. {
  2762.    changeColor(15);
  2763. };
  2764. mcBottle_Popup.bg_colors.bg_color_16.onPress = function()
  2765. {
  2766.    changeColor(16);
  2767. };
  2768. mcBottle_Popup.bg_colors.bg_color_17.onPress = function()
  2769. {
  2770.    changeColor(17);
  2771. };
  2772. mcBottle_Popup.bg_colors.bg_color_18.onPress = function()
  2773. {
  2774.    changeColor(18);
  2775. };
  2776. mcBottle_Popup.bg_colors.bg_color_19.onPress = function()
  2777. {
  2778.    changeColor(19);
  2779. };
  2780. mcBottle_Popup.bg_colors.bg_color_20.onPress = function()
  2781. {
  2782.    changeColor(20);
  2783. };
  2784. mcBottle_Popup.bg_colors.bg_color_21.onPress = function()
  2785. {
  2786.    changeColor(21);
  2787. };
  2788. mcBottle_Popup.bg_colors.bg_color_22.onPress = function()
  2789. {
  2790.    changeColor(22);
  2791. };
  2792. mcBottle_Popup.bg_colors.bg_color_23.onPress = function()
  2793. {
  2794.    changeColor(23);
  2795. };
  2796. mcBottle_Popup.bg_colors.bg_color_24.onPress = function()
  2797. {
  2798.    changeColor(24);
  2799. };
  2800. mcBottle_Popup.bg_colors.bg_color_25.onPress = function()
  2801. {
  2802.    changeColor(25);
  2803. };
  2804. mcBottle_Popup.bg_colors.bg_color_26.onPress = function()
  2805. {
  2806.    changeColor(26);
  2807. };
  2808. mcBottle_Popup.bg_colors.bg_color_27.onPress = function()
  2809. {
  2810.    changeColor(27);
  2811. };
  2812. mcBottle_Popup.bg_colors.bg_color_28.onPress = function()
  2813. {
  2814.    changeColor(28);
  2815. };
  2816. mcBottle_Popup.bg_colors.bg_color_29.onPress = function()
  2817. {
  2818.    changeColor(29);
  2819. };
  2820. mcBottle_Popup.bg_colors.bg_color_30.onPress = function()
  2821. {
  2822.    changeColor(30);
  2823. };
  2824. mcBottle_Popup.bg_colors.bg_color_31.onPress = function()
  2825. {
  2826.    changeColor(31);
  2827. };
  2828. mcBottle_Popup.bg_colors.bg_color_32.onPress = function()
  2829. {
  2830.    changeColor(32);
  2831. };
  2832. mcBottle_Popup.patterns.pattern_0.onPress = function()
  2833. {
  2834.    changeSample(0);
  2835. };
  2836. mcBottle_Popup.patterns.pattern_1.onPress = function()
  2837. {
  2838.    changeSample(1);
  2839. };
  2840. mcBottle_Popup.patterns.pattern_2.onPress = function()
  2841. {
  2842.    changeSample(2);
  2843. };
  2844. mcBottle_Popup.patterns.pattern_3.onPress = function()
  2845. {
  2846.    changeSample(3);
  2847. };
  2848. mcBottle_Popup.patterns.pattern_4.onPress = function()
  2849. {
  2850.    changeSample(4);
  2851. };
  2852. mcBottle_Popup.patterns.pattern_5.onPress = function()
  2853. {
  2854.    changeSample(5);
  2855. };
  2856. mcBottle_Popup.patterns.pattern_6.onPress = function()
  2857. {
  2858.    changeSample(6);
  2859. };
  2860. mcBottle_Popup.patterns.pattern_7.onPress = function()
  2861. {
  2862.    changeSample(7);
  2863. };
  2864. mcBottle_Popup.patterns.pattern_8.onPress = function()
  2865. {
  2866.    changeSample(8);
  2867. };
  2868. mcBottle_Popup.patterns.pattern_9.onPress = function()
  2869. {
  2870.    changeSample(9);
  2871. };
  2872. mcBottle_Popup.patterns.pattern_10.onPress = function()
  2873. {
  2874.    changeSample(10);
  2875. };
  2876. mcBottle_Popup.patterns.pattern_11.onPress = function()
  2877. {
  2878.    changeSample(11);
  2879. };
  2880. mcBottle_Popup.patterns.pattern_12.onPress = function()
  2881. {
  2882.    changeSample(12);
  2883. };
  2884. mcBottle_Popup.patterns.pattern_13.onPress = function()
  2885. {
  2886.    changeSample(13);
  2887. };
  2888. mcBottle_Popup.patterns.pattern_14.onPress = function()
  2889. {
  2890.    changeSample(14);
  2891. };
  2892. mcBottle_Popup.patterns.pattern_15.onPress = function()
  2893. {
  2894.    changeSample(15);
  2895. };
  2896. mcBottle_Popup.patterns.pattern_16.onPress = function()
  2897. {
  2898.    changeSample(16);
  2899. };
  2900. mcBottle_Popup.patterns.pattern_17.onPress = function()
  2901. {
  2902.    changeSample(17);
  2903. };
  2904. mcBottle_Popup.patterns.pattern_18.onPress = function()
  2905. {
  2906.    changeSample(18);
  2907. };
  2908. mcBottle_Popup.patterns.pattern_19.onPress = function()
  2909. {
  2910.    changeSample(19);
  2911. };
  2912. mcBottle_Popup.patterns.pattern_20.onPress = function()
  2913. {
  2914.    changeSample(20);
  2915. };
  2916. mcBottle_Popup.patterns.pattern_21.onPress = function()
  2917. {
  2918.    changeSample(21);
  2919. };
  2920. mcBottle_Popup.patterns.pattern_22.onPress = function()
  2921. {
  2922.    changeSample(22);
  2923. };
  2924. bracelet_set_0.bracelet_0.onPress = function()
  2925. {
  2926.    releaseAll();
  2927.    curBracelet = 0;
  2928.    getBracelet();
  2929. };
  2930. bracelet_set_0.bracelet_1.onPress = function()
  2931. {
  2932.    releaseAll();
  2933.    curBracelet = 1;
  2934.    getBracelet();
  2935. };
  2936. bracelet_set_1.bracelet_2.onPress = function()
  2937. {
  2938.    releaseAll();
  2939.    curBracelet = 2;
  2940.    getBracelet();
  2941. };
  2942. bracelet_set_1.bracelet_3.onPress = function()
  2943. {
  2944.    releaseAll();
  2945.    curBracelet = 3;
  2946.    getBracelet();
  2947. };
  2948. bracelet_set_2.bracelet_4.onPress = function()
  2949. {
  2950.    releaseAll();
  2951.    curBracelet = 4;
  2952.    getBracelet();
  2953. };
  2954. bracelet_set_2.bracelet_5.onPress = function()
  2955. {
  2956.    releaseAll();
  2957.    curBracelet = 5;
  2958.    getBracelet();
  2959. };
  2960. bracelet_set_3.bracelet_6.onPress = function()
  2961. {
  2962.    releaseAll();
  2963.    curBracelet = 6;
  2964.    getBracelet();
  2965. };
  2966. bracelet_set_3.bracelet_7.onPress = function()
  2967. {
  2968.    releaseAll();
  2969.    curBracelet = 7;
  2970.    getBracelet();
  2971. };
  2972. bracelet_set_4.bracelet_8.onPress = function()
  2973. {
  2974.    releaseAll();
  2975.    curBracelet = 8;
  2976.    getBracelet();
  2977. };
  2978. bracelet_set_4.bracelet_9.onPress = function()
  2979. {
  2980.    releaseAll();
  2981.    curBracelet = 9;
  2982.    getBracelet();
  2983. };
  2984. bracelet_set_5.bracelet_10.onPress = function()
  2985. {
  2986.    releaseAll();
  2987.    curBracelet = 10;
  2988.    getBracelet();
  2989. };
  2990. bracelet_set_5.bracelet_11.onPress = function()
  2991. {
  2992.    releaseAll();
  2993.    curBracelet = 11;
  2994.    getBracelet();
  2995. };
  2996. bracelet_set_6.bracelet_12.onPress = function()
  2997. {
  2998.    releaseAll();
  2999.    curBracelet = 12;
  3000.    getBracelet();
  3001. };
  3002. bracelet_set_6.bracelet_13.onPress = function()
  3003. {
  3004.    releaseAll();
  3005.    curBracelet = 13;
  3006.    getBracelet();
  3007. };
  3008. roll.onPress = function()
  3009. {
  3010.    if(mcBottle_Popup._visible == true)
  3011.    {
  3012.       return undefined;
  3013.    }
  3014.    if(mcBrush != null || mcBrushMix != null)
  3015.    {
  3016.       releaseAll();
  3017.    }
  3018.    cur_Sound = new Sound();
  3019.    cur_Sound.attachSound("slider.mp3");
  3020.    cur_Sound.start();
  3021.    stickers_roll.gotoAndPlay(2);
  3022.    levelCounter++;
  3023.    stickers_roll.swapDepths(levelCounter);
  3024. };
  3025. stickers_roll.stickers_0.onPress = function()
  3026. {
  3027.    releaseAll();
  3028.    curSticker = 0;
  3029.    getSticker();
  3030. };
  3031. stickers_roll.stickers_1.onPress = function()
  3032. {
  3033.    releaseAll();
  3034.    curSticker = 1;
  3035.    getSticker();
  3036. };
  3037. stickers_roll.stickers_2.onPress = function()
  3038. {
  3039.    releaseAll();
  3040.    curSticker = 2;
  3041.    getSticker();
  3042. };
  3043. stickers_roll.stickers_3.onPress = function()
  3044. {
  3045.    releaseAll();
  3046.    curSticker = 3;
  3047.    getSticker();
  3048. };
  3049. stickers_roll.stickers_4.onPress = function()
  3050. {
  3051.    releaseAll();
  3052.    curSticker = 4;
  3053.    getSticker();
  3054. };
  3055. stickers_roll.stickers_5.onPress = function()
  3056. {
  3057.    releaseAll();
  3058.    curSticker = 5;
  3059.    getSticker();
  3060. };
  3061. stickers_roll.stickers_6.onPress = function()
  3062. {
  3063.    releaseAll();
  3064.    curSticker = 6;
  3065.    getSticker();
  3066. };
  3067. stickers_roll.stickers_7.onPress = function()
  3068. {
  3069.    releaseAll();
  3070.    curSticker = 7;
  3071.    getSticker();
  3072. };
  3073. stickers_roll.stickers_8.onPress = function()
  3074. {
  3075.    releaseAll();
  3076.    curSticker = 8;
  3077.    getSticker();
  3078. };
  3079. stickers_roll.stickers_9.onPress = function()
  3080. {
  3081.    releaseAll();
  3082.    curSticker = 9;
  3083.    getSticker();
  3084. };
  3085. stickers_roll.stickers_10.onPress = function()
  3086. {
  3087.    releaseAll();
  3088.    curSticker = 10;
  3089.    getSticker();
  3090. };
  3091. stickers_roll.stickers_11.onPress = function()
  3092. {
  3093.    releaseAll();
  3094.    curSticker = 11;
  3095.    getSticker();
  3096. };
  3097. var anim = setInterval(animateSparkleJewellery,5000);
  3098. ring_set_0.ring_0.onPress = function()
  3099. {
  3100.    releaseAll();
  3101.    curRing = 0;
  3102.    getRing();
  3103. };
  3104. ring_set_0.ring_1.onPress = function()
  3105. {
  3106.    releaseAll();
  3107.    curRing = 1;
  3108.    getRing();
  3109. };
  3110. ring_set_0.ring_2.onPress = function()
  3111. {
  3112.    releaseAll();
  3113.    curRing = 2;
  3114.    getRing();
  3115. };
  3116. ring_set_1.ring_3.onPress = function()
  3117. {
  3118.    releaseAll();
  3119.    curRing = 3;
  3120.    getRing();
  3121. };
  3122. ring_set_1.ring_4.onPress = function()
  3123. {
  3124.    releaseAll();
  3125.    curRing = 4;
  3126.    getRing();
  3127. };
  3128. ring_set_1.ring_5.onPress = function()
  3129. {
  3130.    releaseAll();
  3131.    curRing = 5;
  3132.    getRing();
  3133. };
  3134. ring_set_2.ring_6.onPress = function()
  3135. {
  3136.    releaseAll();
  3137.    curRing = 6;
  3138.    getRing();
  3139. };
  3140. ring_set_2.ring_7.onPress = function()
  3141. {
  3142.    releaseAll();
  3143.    curRing = 7;
  3144.    getRing();
  3145. };
  3146. ring_set_2.ring_8.onPress = function()
  3147. {
  3148.    releaseAll();
  3149.    curRing = 8;
  3150.    getRing();
  3151. };
  3152. ring_set_3.ring_9.onPress = function()
  3153. {
  3154.    releaseAll();
  3155.    curRing = 9;
  3156.    getRing();
  3157. };
  3158. ring_set_3.ring_10.onPress = function()
  3159. {
  3160.    releaseAll();
  3161.    curRing = 10;
  3162.    getRing();
  3163. };
  3164. ring_set_3.ring_11.onPress = function()
  3165. {
  3166.    releaseAll();
  3167.    curRing = 11;
  3168.    getRing();
  3169. };
  3170. ring_set_4.ring_12.onPress = function()
  3171. {
  3172.    releaseAll();
  3173.    curRing = 12;
  3174.    getRing();
  3175. };
  3176. ring_set_4.ring_13.onPress = function()
  3177. {
  3178.    releaseAll();
  3179.    curRing = 13;
  3180.    getRing();
  3181. };
  3182. ring_set_4.ring_14.onPress = function()
  3183. {
  3184.    releaseAll();
  3185.    curRing = 14;
  3186.    getRing();
  3187. };
  3188. ring_set_5.ring_15.onPress = function()
  3189. {
  3190.    releaseAll();
  3191.    curRing = 15;
  3192.    getRing();
  3193. };
  3194. ring_set_5.ring_16.onPress = function()
  3195. {
  3196.    releaseAll();
  3197.    curRing = 16;
  3198.    getRing();
  3199. };
  3200. ring_set_5.ring_17.onPress = function()
  3201. {
  3202.    releaseAll();
  3203.    curRing = 17;
  3204.    getRing();
  3205. };
  3206. slider.onRollOver = function()
  3207. {
  3208.    this.gotoAndStop(2);
  3209. };
  3210. slider.onRollOut = function()
  3211. {
  3212.    this.gotoAndStop(1);
  3213. };
  3214. slider.onPress = function()
  3215. {
  3216.    if(mcBottle_Popup._visible == true)
  3217.    {
  3218.       return undefined;
  3219.    }
  3220.    releaseAll();
  3221.    this.startDrag(false,360,450,430,450);
  3222. };
  3223. slider.onRelease = function()
  3224. {
  3225.    if(mcBottle_Popup._visible != true)
  3226.    {
  3227.       this.stopDrag();
  3228.       var _loc1_ = this._x;
  3229.       var _loc2_ = 0;
  3230.       cur_Sound = new Sound();
  3231.       cur_Sound.attachSound("slider.mp3");
  3232.       cur_Sound.start();
  3233.       if(_loc1_ > 360 && _loc1_ < 378)
  3234.       {
  3235.          _loc2_ = 0;
  3236.       }
  3237.       else if(_loc1_ > 378 && _loc1_ < 396)
  3238.       {
  3239.          _loc2_ = 1;
  3240.       }
  3241.       else if(_loc1_ > 396 && _loc1_ < 414)
  3242.       {
  3243.          _loc2_ = 2;
  3244.       }
  3245.       else if(_loc1_ > 414)
  3246.       {
  3247.          _loc2_ = 3;
  3248.       }
  3249.       if(_loc2_ != nailShape)
  3250.       {
  3251.          nailShape = _loc2_;
  3252.          handleNailShapeChange();
  3253.       }
  3254.    }
  3255. };
  3256. recycle_bin.onRollOver = function()
  3257. {
  3258.    this.gotoAndStop(2);
  3259.    if(mcBracelet != null)
  3260.    {
  3261.       mcBracelet.removeMovieClip();
  3262.    }
  3263.    if(mcRing != null)
  3264.    {
  3265.       mcRing.removeMovieClip();
  3266.    }
  3267. };
  3268. recycle_bin.onRollOut = function()
  3269. {
  3270.    this.gotoAndStop(1);
  3271. };
  3272. done.onPress = function()
  3273. {
  3274.    var _loc1_ = _root;
  3275.    if(premium == 0)
  3276.    {
  3277.       showRegistrationDialog();
  3278.    }
  3279.    else if(mcBottle_Popup._visible != true)
  3280.    {
  3281.       releaseAll();
  3282.       i = 0;
  3283.       while(i < 10)
  3284.       {
  3285.          if(stickers[i] != -1)
  3286.          {
  3287.             _loc1_["s_" + i].removeMovieClip();
  3288.          }
  3289.          if(nailObjects[i] != null)
  3290.          {
  3291.             nailObjects[i].removeMovieClip();
  3292.          }
  3293.          if(nailObjectsDouble[i] != null)
  3294.          {
  3295.             nailObjectsDouble[i].removeMovieClip();
  3296.          }
  3297.          if(contourObjects[i] != null)
  3298.          {
  3299.             contourObjects[i].removeMovieClip();
  3300.          }
  3301.          if(highlightObjects[i] != null)
  3302.          {
  3303.             highlightObjects[i].removeMovieClip();
  3304.          }
  3305.          if(tipObjects[i] != null)
  3306.          {
  3307.             tipObjects[i].removeMovieClip();
  3308.          }
  3309.          i++;
  3310.       }
  3311.       i = 0;
  3312.       while(i < ringNames.length)
  3313.       {
  3314.          _loc1_[ringNames[i]].removeMovieClip();
  3315.          i++;
  3316.       }
  3317.       i = 0;
  3318.       while(i < 2)
  3319.       {
  3320.          if(bracelets[i] != -1)
  3321.          {
  3322.             var _loc2_ = bracelets[i];
  3323.             _loc1_[_loc2_].removeMovieClip();
  3324.          }
  3325.          i++;
  3326.       }
  3327.       var i = 0;
  3328.       while(i < customBracelet.length)
  3329.       {
  3330.          customBraceletObjects[i]._visible = false;
  3331.          i++;
  3332.       }
  3333.       if(new_label != null)
  3334.       {
  3335.          new_label._visible = false;
  3336.       }
  3337.       ring_set_1._visible = false;
  3338.       ring_set_2._visible = false;
  3339.       ring_set_3._visible = false;
  3340.       ring_set_4._visible = false;
  3341.       ring_set_5._visible = false;
  3342.       bracelet_set_1._visible = false;
  3343.       bracelet_set_2._visible = false;
  3344.       bracelet_set_3._visible = false;
  3345.       bracelet_set_4._visible = false;
  3346.       bracelet_set_5._visible = false;
  3347.       bracelet_set_6._visible = false;
  3348.       stickers_roll._visible = false;
  3349.       var i = 0;
  3350.       while(i < nPolishes)
  3351.       {
  3352.          the_group = "polish_" + i;
  3353.          if(_loc1_[the_group] != null)
  3354.          {
  3355.             _loc1_[the_group]._visible = false;
  3356.          }
  3357.          i++;
  3358.       }
  3359.       real_empty_bottle._visible = false;
  3360.       cap._visible = false;
  3361.       if(_loc1_.bottle_small != null)
  3362.       {
  3363.          _loc1_.bottle_small._visible = false;
  3364.       }
  3365.       if(_loc1_.bottleBG_small != null)
  3366.       {
  3367.          _loc1_.bottleBG_small.removeMovieClip();
  3368.       }
  3369.       if(_loc1_.small_p != null)
  3370.       {
  3371.          _loc1_.small_p.removeMovieClip();
  3372.       }
  3373.       if(_loc1_.bottle_small != null)
  3374.       {
  3375.          _loc1_.bottle_small.removeMovieClip();
  3376.       }
  3377.       gotoAndStop("done");
  3378.    }
  3379. };
  3380. var customBracelet = new Array();
  3381. var customBraceletCoordinates = new Array();
  3382. var customBeads = new Array();
  3383. var customBeadsCoordinates = new Array();
  3384. var customBraceletObjects = new Array();
  3385. var curBead = -1;
  3386. var chosenBracelet = null;
  3387. var beadNames = new Array();
  3388. var beadSetCounter = 0;
  3389. var beadsCounter = 0;
  3390. var braceletsCounter = 0;
  3391. var braceletSetCounter = 0;
  3392. var customBracelet_tmp;
  3393. var customBraceletCoordinates_tmp;
  3394. var customBeads_tmp;
  3395. var customBeadsCoordinates_tmp;
  3396. var defaultbraceletCoordinates = new Array(345,338);
  3397. var createdBracelet = null;
  3398. bracelets_popup.clear_bracelets.onPress = function()
  3399. {
  3400.    cur_Sound = new Sound();
  3401.    cur_Sound.attachSound("buttons.mp3");
  3402.    cur_Sound.start();
  3403.    clearAllCustomBracelets();
  3404. };
  3405. bracelets_popup.bracelets_bg.onPress = function()
  3406. {
  3407.    releaseAll_Frame3();
  3408. };
  3409. bracelets_popup.ok_bracelets.onPress = function()
  3410. {
  3411.    var _loc3_ = _root;
  3412.    cur_Sound = new Sound();
  3413.    cur_Sound.attachSound("buttons.mp3");
  3414.    cur_Sound.start();
  3415.    if(createdBracelet != null)
  3416.    {
  3417.       createdBracelet.removeMovieClip();
  3418.    }
  3419.    releaseAll_Frame3();
  3420.    var brX;
  3421.    var brY;
  3422.    levelCounter++;
  3423.    levelCounter++;
  3424.    if(customBracelet_tmp != -1)
  3425.    {
  3426.       _loc3_.attachMovie("custom_bracelet_" + customBracelet_tmp,"realBracelet_" + levelCounter + "_" + customBracelet_tmp,levelCounter,{_x:50,_y:320});
  3427.    }
  3428.    else
  3429.    {
  3430.       _loc3_.createEmptyMovieClip("realBracelet_" + levelCounter + "_" + customBracelet_tmp,levelCounter);
  3431.       _loc3_["realBracelet_" + levelCounter + "_" + customBracelet_tmp]._x = 50;
  3432.       _loc3_["realBracelet_" + levelCounter + "_" + customBracelet_tmp]._y = 320;
  3433.       customBraceletCoordinates_tmp[0] = defaultbraceletCoordinates[0];
  3434.       customBraceletCoordinates_tmp[1] = defaultbraceletCoordinates[1];
  3435.    }
  3436.    createdBracelet = _loc3_["realBracelet_" + levelCounter + "_" + customBracelet_tmp];
  3437.    createdBracelet._visible = false;
  3438.    createdBracelet.onPress = function()
  3439.    {
  3440.       var _loc1_ = this;
  3441.       releaseAll();
  3442.       customBraceletClicked = true;
  3443.       numberPos = _loc1_._name.lastIndexOf("_");
  3444.       curBracelet = _loc1_._name.substring(numberPos + Number(1),_loc1_._name.length);
  3445.       getBracelet();
  3446.    };
  3447.    var _loc1_ = 0;
  3448.    while(_loc1_ < customBeads_tmp.length)
  3449.    {
  3450.       curX = Number(customBeadsCoordinates_tmp[_loc1_][0] - customBraceletCoordinates_tmp[0]);
  3451.       curY = Number(customBeadsCoordinates_tmp[_loc1_][1] - customBraceletCoordinates_tmp[1]);
  3452.       levelCounter++;
  3453.       createdBracelet.attachMovie("bead_" + customBeads_tmp[_loc1_],"b2Print_" + levelCounter,levelCounter,{_x:curX,_y:curY});
  3454.       _loc1_ = _loc1_ + 1;
  3455.    }
  3456.    customBraceletObjects.push(createdBracelet);
  3457.    if(customBracelet_tmp != -1 || customBeads_tmp.length != 0)
  3458.    {
  3459.       levelCounter++;
  3460.       _loc3_.attachMovie("new_label","new_label",levelCounter,{_x:43,_y:292});
  3461.    }
  3462.    _loc1_ = 0;
  3463.    while(_loc1_ < beadNames.length)
  3464.    {
  3465.       var _loc2_ = _loc3_[beadNames[_loc1_]];
  3466.       _loc2_.removeMovieClip();
  3467.       _loc1_ = _loc1_ + 1;
  3468.    }
  3469.    chosenBracelet.removeMovieClip();
  3470.    customBracelet.push(customBracelet_tmp);
  3471.    customBraceletCoordinates.push(customBraceletCoordinates_tmp);
  3472.    customBeads.push(customBeads_tmp);
  3473.    customBeadsCoordinates.push(customBeadsCoordinates_tmp);
  3474.    stab_screen._visible = false;
  3475.    bracelets_popup._visible = false;
  3476.    curCustomBracelet2Show = Number(customBracelet.length) - Number(1);
  3477.    curBraceletSet = nBraceletSets;
  3478.    showCustomBracelet();
  3479. };
  3480. bracelets_popup.recycle_bin.onRollOver = function()
  3481. {
  3482.    this.gotoAndStop(2);
  3483.    if(mcBracelet != null)
  3484.    {
  3485.       mcBracelet.removeMovieClip();
  3486.    }
  3487.    if(mcBead != null)
  3488.    {
  3489.       mcBead.removeMovieClip();
  3490.    }
  3491. };
  3492. bracelets_popup.recycle_bin.onRollOut = function()
  3493. {
  3494.    this.gotoAndStop(1);
  3495. };
  3496. bracelets_popup.bracelet_place.onPress = function()
  3497. {
  3498.    var _loc2_ = this;
  3499.    var _loc3_ = _root;
  3500.    if(mcBead != null)
  3501.    {
  3502.       handleAddingBead();
  3503.    }
  3504.    else if(mcBracelet != null)
  3505.    {
  3506.       if(chosenBracelet != null)
  3507.       {
  3508.          chosenBracelet.removeMovieClip();
  3509.       }
  3510.       levelCounter++;
  3511.       _loc3_.attachMovie("custom_bracelet_" + customBracelet_tmp,"theBracelet_" + braceletsCounter,levelCounter,{_x:defaultbraceletCoordinates[0],_y:defaultbraceletCoordinates[1]});
  3512.       chosenBracelet = _loc3_["theBracelet_" + braceletsCounter];
  3513.       customBraceletCoordinates_tmp[0] = defaultbraceletCoordinates[0];
  3514.       customBraceletCoordinates_tmp[1] = defaultbraceletCoordinates[1];
  3515.       releaseBracelet();
  3516.       _loc3_["theBracelet_" + braceletsCounter].onRelease = function()
  3517.       {
  3518.          var _loc1_ = this;
  3519.          _loc1_.stopDrag();
  3520.          if(_loc1_.hitTest(bracelets_popup.recycle_bin))
  3521.          {
  3522.             _loc1_.removeMovieClip();
  3523.             customBracelet_tmp = -1;
  3524.             chosenBracelet = null;
  3525.             customBraceletCoordinates_tmp[0] = -1;
  3526.             customBraceletCoordinates_tmp[1] = -1;
  3527.             cur_Sound = new Sound();
  3528.             cur_Sound.attachSound("trash.mp3");
  3529.             cur_Sound.start();
  3530.          }
  3531.          else
  3532.          {
  3533.             customBraceletCoordinates_tmp[0] = _loc1_._x;
  3534.             customBraceletCoordinates_tmp[1] = _loc1_._y;
  3535.          }
  3536.       };
  3537.       _loc3_["theBracelet_" + braceletsCounter].onPress = function()
  3538.       {
  3539.          var _loc2_ = this;
  3540.          var _loc3_ = _root;
  3541.          if(mcBracelet != null)
  3542.          {
  3543.             if(chosenBracelet != null)
  3544.             {
  3545.                chosenBracelet.removeMovieClip();
  3546.             }
  3547.          }
  3548.          if(mcBead != null)
  3549.          {
  3550.             levelCounter++;
  3551.             curX = Number(_loc3_._xmouse - mcBead._width / 2);
  3552.             curY = Number(_loc3_._ymouse - mcBead._height / 2);
  3553.             _loc3_.attachMovie("bead_" + curBead,"bead_" + beadsCounter,levelCounter,{_x:curX,_y:curY});
  3554.             customBeads_tmp.push(curBead);
  3555.             beadNames.push("bead_" + beadsCounter);
  3556.             var tmpCoordinates = new Array(curX,curY);
  3557.             customBeadsCoordinates_tmp.push(tmpCoordinates);
  3558.             releaseBead();
  3559.             _loc3_["bead_" + beadsCounter].onRelease = function()
  3560.             {
  3561.                var _loc2_ = this;
  3562.                _loc2_.stopDrag();
  3563.                if(_loc2_.hitTest(bracelets_popup.recycle_bin))
  3564.                {
  3565.                   var _loc1_ = 0;
  3566.                   while(_loc1_ < beadNames.length)
  3567.                   {
  3568.                      if(_loc2_._name == beadNames[_loc1_])
  3569.                      {
  3570.                         customBeads_tmp.splice(_loc1_,1);
  3571.                         beadNames.splice(_loc1_,1);
  3572.                         customBeadsCoordinates_tmp.splice(_loc1_,1);
  3573.                         cur_Sound = new Sound();
  3574.                         cur_Sound.attachSound("trash.mp3");
  3575.                         cur_Sound.start();
  3576.                         break;
  3577.                      }
  3578.                      _loc1_ = _loc1_ + 1;
  3579.                   }
  3580.                   _loc2_.removeMovieClip();
  3581.                   curBead = -1;
  3582.                }
  3583.                else
  3584.                {
  3585.                   _loc1_ = 0;
  3586.                   while(_loc1_ < beadNames.length)
  3587.                   {
  3588.                      if(_loc2_._name == beadNames[_loc1_])
  3589.                      {
  3590.                         customBeadsCoordinates_tmp[_loc1_][0] = _loc2_._x;
  3591.                         customBeadsCoordinates_tmp[_loc1_][1] = _loc2_._y;
  3592.                         break;
  3593.                      }
  3594.                      _loc1_ = _loc1_ + 1;
  3595.                   }
  3596.                }
  3597.             };
  3598.             _loc3_["bead_" + beadsCounter].onPress = function()
  3599.             {
  3600.                if(mcBead == null)
  3601.                {
  3602.                   this.startDrag(false);
  3603.                }
  3604.                else
  3605.                {
  3606.                   handleAddingBead();
  3607.                }
  3608.             };
  3609.             beadsCounter++;
  3610.          }
  3611.          else
  3612.          {
  3613.             _loc2_.startDrag(false);
  3614.          }
  3615.       };
  3616.       braceletsCounter++;
  3617.    }
  3618. };
  3619. bracelets_popup.custom_bracelet_set_1.custom_bracelet_0.onPress = function()
  3620. {
  3621.    getCustomBracelet(0);
  3622. };
  3623. bracelets_popup.custom_bracelet_set_1.custom_bracelet_1.onPress = function()
  3624. {
  3625.    getCustomBracelet(1);
  3626. };
  3627. bracelets_popup.custom_bracelet_set_1.custom_bracelet_2.onPress = function()
  3628. {
  3629.    getCustomBracelet(2);
  3630. };
  3631. bracelets_popup.custom_bracelet_set_1.custom_bracelet_3.onPress = function()
  3632. {
  3633.    getCustomBracelet(3);
  3634. };
  3635. bracelets_popup.custom_bracelet_set_1.custom_bracelet_4.onPress = function()
  3636. {
  3637.    getCustomBracelet(4);
  3638. };
  3639. bracelets_popup.custom_bracelet_set_1.custom_bracelet_5.onPress = function()
  3640. {
  3641.    getCustomBracelet(5);
  3642. };
  3643. bracelets_popup.custom_bracelet_set_1.custom_bracelet_6.onPress = function()
  3644. {
  3645.    getCustomBracelet(6);
  3646. };
  3647. bracelets_popup.custom_bracelet_set_0.custom_bracelet_7.onPress = function()
  3648. {
  3649.    getCustomBracelet(7);
  3650. };
  3651. bracelets_popup.custom_bracelet_set_0.custom_bracelet_8.onPress = function()
  3652. {
  3653.    getCustomBracelet(8);
  3654. };
  3655. bracelets_popup.custom_bracelet_set_0.custom_bracelet_9.onPress = function()
  3656. {
  3657.    getCustomBracelet(9);
  3658. };
  3659. bracelets_popup.custom_bracelet_set_0.custom_bracelet_10.onPress = function()
  3660. {
  3661.    getCustomBracelet(10);
  3662. };
  3663. bracelets_popup.custom_bracelet_set_0.custom_bracelet_11.onPress = function()
  3664. {
  3665.    getCustomBracelet(11);
  3666. };
  3667. bracelets_popup.custom_bracelet_set_0.custom_bracelet_12.onPress = function()
  3668. {
  3669.    getCustomBracelet(12);
  3670. };
  3671. bracelets_popup.custom_bracelet_set_0.custom_bracelet_13.onPress = function()
  3672. {
  3673.    getCustomBracelet(13);
  3674. };
  3675. bracelets_popup.custom_bracelet_set_0.custom_bracelet_14.onPress = function()
  3676. {
  3677.    getCustomBracelet(14);
  3678. };
  3679. bracelets_popup.custom_bracelet_set_0.custom_bracelet_15.onPress = function()
  3680. {
  3681.    getCustomBracelet(15);
  3682. };
  3683. bracelets_popup.custom_bracelet_set_0.custom_bracelet_16.onPress = function()
  3684. {
  3685.    getCustomBracelet(16);
  3686. };
  3687. bracelets_popup.custom_bracelet_set_0.custom_bracelet_17.onPress = function()
  3688. {
  3689.    getCustomBracelet(17);
  3690. };
  3691. bracelets_popup.custom_bracelet_set_0.custom_bracelet_18.onPress = function()
  3692. {
  3693.    getCustomBracelet(18);
  3694. };
  3695. bracelets_popup.more_custom_bracelets.onPress = function()
  3696. {
  3697.    if(braceletSetCounter == 0)
  3698.    {
  3699.       bracelets_popup.custom_bracelet_set_0._visible = false;
  3700.       bracelets_popup.custom_bracelet_set_1._visible = true;
  3701.       braceletSetCounter = 1;
  3702.    }
  3703.    else
  3704.    {
  3705.       bracelets_popup.custom_bracelet_set_1._visible = false;
  3706.       bracelets_popup.custom_bracelet_set_0._visible = true;
  3707.       braceletSetCounter = 0;
  3708.    }
  3709.    cur_Sound = new Sound();
  3710.    cur_Sound.attachSound("buttons.mp3");
  3711.    cur_Sound.start();
  3712. };
  3713. bracelets_popup.more_beads.onPress = function()
  3714. {
  3715.    if(beadSetCounter == 0)
  3716.    {
  3717.       bracelets_popup.bead_set_0._visible = false;
  3718.       bracelets_popup.bead_set_1._visible = true;
  3719.       beadSetCounter = 1;
  3720.    }
  3721.    else
  3722.    {
  3723.       bracelets_popup.bead_set_1._visible = false;
  3724.       bracelets_popup.bead_set_0._visible = true;
  3725.       beadSetCounter = 0;
  3726.    }
  3727.    cur_Sound = new Sound();
  3728.    cur_Sound.attachSound("buttons.mp3");
  3729.    cur_Sound.start();
  3730. };
  3731. bracelets_popup.bead_set_1.bead_0.onPress = function()
  3732. {
  3733.    getABead(0);
  3734. };
  3735. bracelets_popup.bead_set_1.bead_1.onPress = function()
  3736. {
  3737.    getABead(1);
  3738. };
  3739. bracelets_popup.bead_set_1.bead_2.onPress = function()
  3740. {
  3741.    getABead(2);
  3742. };
  3743. bracelets_popup.bead_set_1.bead_2.onPress = function()
  3744. {
  3745.    getABead(2);
  3746. };
  3747. bracelets_popup.bead_set_1.bead_3.onPress = function()
  3748. {
  3749.    getABead(3);
  3750. };
  3751. bracelets_popup.bead_set_1.bead_4.onPress = function()
  3752. {
  3753.    getABead(4);
  3754. };
  3755. bracelets_popup.bead_set_1.bead_5.onPress = function()
  3756. {
  3757.    getABead(5);
  3758. };
  3759. bracelets_popup.bead_set_1.bead_6.onPress = function()
  3760. {
  3761.    getABead(6);
  3762. };
  3763. bracelets_popup.bead_set_1.bead_7.onPress = function()
  3764. {
  3765.    getABead(7);
  3766. };
  3767. bracelets_popup.bead_set_1.bead_8.onPress = function()
  3768. {
  3769.    getABead(8);
  3770. };
  3771. bracelets_popup.bead_set_1.bead_9.onPress = function()
  3772. {
  3773.    getABead(9);
  3774. };
  3775. bracelets_popup.bead_set_1.bead_10.onPress = function()
  3776. {
  3777.    getABead(10);
  3778. };
  3779. bracelets_popup.bead_set_1.bead_11.onPress = function()
  3780. {
  3781.    getABead(11);
  3782. };
  3783. bracelets_popup.bead_set_1.bead_12.onPress = function()
  3784. {
  3785.    getABead(12);
  3786. };
  3787. bracelets_popup.bead_set_1.bead_13.onPress = function()
  3788. {
  3789.    getABead(13);
  3790. };
  3791. bracelets_popup.bead_set_1.bead_14.onPress = function()
  3792. {
  3793.    getABead(14);
  3794. };
  3795. bracelets_popup.bead_set_1.bead_15.onPress = function()
  3796. {
  3797.    getABead(15);
  3798. };
  3799. bracelets_popup.bead_set_1.bead_16.onPress = function()
  3800. {
  3801.    getABead(16);
  3802. };
  3803. bracelets_popup.bead_set_1.bead_17.onPress = function()
  3804. {
  3805.    getABead(17);
  3806. };
  3807. bracelets_popup.bead_set_1.bead_18.onPress = function()
  3808. {
  3809.    getABead(18);
  3810. };
  3811. bracelets_popup.bead_set_1.bead_19.onPress = function()
  3812. {
  3813.    getABead(19);
  3814. };
  3815. bracelets_popup.bead_set_1.bead_20.onPress = function()
  3816. {
  3817.    getABead(20);
  3818. };
  3819. bracelets_popup.bead_set_1.bead_21.onPress = function()
  3820. {
  3821.    getABead(21);
  3822. };
  3823. bracelets_popup.bead_set_1.bead_22.onPress = function()
  3824. {
  3825.    getABead(22);
  3826. };
  3827. bracelets_popup.bead_set_1.bead_23.onPress = function()
  3828. {
  3829.    getABead(23);
  3830. };
  3831. bracelets_popup.bead_set_1.bead_24.onPress = function()
  3832. {
  3833.    getABead(24);
  3834. };
  3835. bracelets_popup.bead_set_1.bead_25.onPress = function()
  3836. {
  3837.    getABead(25);
  3838. };
  3839. bracelets_popup.bead_set_1.bead_26.onPress = function()
  3840. {
  3841.    getABead(26);
  3842. };
  3843. bracelets_popup.bead_set_1.bead_27.onPress = function()
  3844. {
  3845.    getABead(27);
  3846. };
  3847. bracelets_popup.bead_set_1.bead_28.onPress = function()
  3848. {
  3849.    getABead(28);
  3850. };
  3851. bracelets_popup.bead_set_1.bead_29.onPress = function()
  3852. {
  3853.    getABead(29);
  3854. };
  3855. bracelets_popup.bead_set_1.bead_30.onPress = function()
  3856. {
  3857.    getABead(30);
  3858. };
  3859. bracelets_popup.bead_set_1.bead_31.onPress = function()
  3860. {
  3861.    getABead(31);
  3862. };
  3863. bracelets_popup.bead_set_1.bead_32.onPress = function()
  3864. {
  3865.    getABead(32);
  3866. };
  3867. bracelets_popup.bead_set_1.bead_33.onPress = function()
  3868. {
  3869.    getABead(33);
  3870. };
  3871. bracelets_popup.bead_set_1.bead_34.onPress = function()
  3872. {
  3873.    getABead(34);
  3874. };
  3875. bracelets_popup.bead_set_1.bead_35.onPress = function()
  3876. {
  3877.    getABead(35);
  3878. };
  3879. bracelets_popup.bead_set_1.bead_36.onPress = function()
  3880. {
  3881.    getABead(36);
  3882. };
  3883. bracelets_popup.bead_set_1.bead_37.onPress = function()
  3884. {
  3885.    getABead(37);
  3886. };
  3887. bracelets_popup.bead_set_1.bead_38.onPress = function()
  3888. {
  3889.    getABead(38);
  3890. };
  3891. bracelets_popup.bead_set_1.bead_39.onPress = function()
  3892. {
  3893.    getABead(39);
  3894. };
  3895. bracelets_popup.bead_set_1.bead_40.onPress = function()
  3896. {
  3897.    getABead(40);
  3898. };
  3899. bracelets_popup.bead_set_1.bead_41.onPress = function()
  3900. {
  3901.    getABead(41);
  3902. };
  3903. bracelets_popup.bead_set_1.bead_42.onPress = function()
  3904. {
  3905.    getABead(42);
  3906. };
  3907. bracelets_popup.bead_set_1.bead_43.onPress = function()
  3908. {
  3909.    getABead(43);
  3910. };
  3911. bracelets_popup.bead_set_1.bead_44.onPress = function()
  3912. {
  3913.    getABead(44);
  3914. };
  3915. bracelets_popup.bead_set_1.bead_45.onPress = function()
  3916. {
  3917.    getABead(45);
  3918. };
  3919. bracelets_popup.bead_set_1.bead_46.onPress = function()
  3920. {
  3921.    getABead(46);
  3922. };
  3923. bracelets_popup.bead_set_1.bead_47.onPress = function()
  3924. {
  3925.    getABead(47);
  3926. };
  3927. bracelets_popup.bead_set_1.bead_48.onPress = function()
  3928. {
  3929.    getABead(48);
  3930. };
  3931. bracelets_popup.bead_set_1.bead_49.onPress = function()
  3932. {
  3933.    getABead(49);
  3934. };
  3935. bracelets_popup.bead_set_1.bead_50.onPress = function()
  3936. {
  3937.    getABead(50);
  3938. };
  3939. bracelets_popup.bead_set_1.bead_51.onPress = function()
  3940. {
  3941.    getABead(51);
  3942. };
  3943. bracelets_popup.bead_set_1.bead_52.onPress = function()
  3944. {
  3945.    getABead(52);
  3946. };
  3947. bracelets_popup.bead_set_1.bead_53.onPress = function()
  3948. {
  3949.    getABead(53);
  3950. };
  3951. bracelets_popup.bead_set_1.bead_54.onPress = function()
  3952. {
  3953.    getABead(54);
  3954. };
  3955. bracelets_popup.bead_set_1.bead_55.onPress = function()
  3956. {
  3957.    getABead(55);
  3958. };
  3959. bracelets_popup.bead_set_1.bead_56.onPress = function()
  3960. {
  3961.    getABead(56);
  3962. };
  3963. bracelets_popup.bead_set_1.bead_57.onPress = function()
  3964. {
  3965.    getABead(57);
  3966. };
  3967. bracelets_popup.bead_set_1.bead_58.onPress = function()
  3968. {
  3969.    getABead(58);
  3970. };
  3971. bracelets_popup.bead_set_1.bead_59.onPress = function()
  3972. {
  3973.    getABead(59);
  3974. };
  3975. bracelets_popup.bead_set_1.bead_60.onPress = function()
  3976. {
  3977.    getABead(60);
  3978. };
  3979. bracelets_popup.bead_set_0.bead_61.onPress = function()
  3980. {
  3981.    getABead(61);
  3982. };
  3983. bracelets_popup.bead_set_0.bead_62.onPress = function()
  3984. {
  3985.    getABead(62);
  3986. };
  3987. bracelets_popup.bead_set_0.bead_63.onPress = function()
  3988. {
  3989.    getABead(63);
  3990. };
  3991. bracelets_popup.bead_set_0.bead_64.onPress = function()
  3992. {
  3993.    getABead(64);
  3994. };
  3995. bracelets_popup.bead_set_0.bead_65.onPress = function()
  3996. {
  3997.    getABead(65);
  3998. };
  3999. bracelets_popup.bead_set_0.bead_66.onPress = function()
  4000. {
  4001.    getABead(66);
  4002. };
  4003. bracelets_popup.bead_set_0.bead_67.onPress = function()
  4004. {
  4005.    getABead(67);
  4006. };
  4007. bracelets_popup.bead_set_0.bead_68.onPress = function()
  4008. {
  4009.    getABead(68);
  4010. };
  4011. bracelets_popup.bead_set_0.bead_69.onPress = function()
  4012. {
  4013.    getABead(69);
  4014. };
  4015. bracelets_popup.bead_set_0.bead_70.onPress = function()
  4016. {
  4017.    getABead(70);
  4018. };
  4019. bracelets_popup.bead_set_0.bead_71.onPress = function()
  4020. {
  4021.    getABead(71);
  4022. };
  4023. bracelets_popup.bead_set_0.bead_72.onPress = function()
  4024. {
  4025.    getABead(72);
  4026. };
  4027. bracelets_popup.bead_set_0.bead_73.onPress = function()
  4028. {
  4029.    getABead(73);
  4030. };
  4031. bracelets_popup.bead_set_0.bead_74.onPress = function()
  4032. {
  4033.    getABead(74);
  4034. };
  4035. bracelets_popup.bead_set_0.bead_75.onPress = function()
  4036. {
  4037.    getABead(75);
  4038. };
  4039. bracelets_popup.bead_set_0.bead_76.onPress = function()
  4040. {
  4041.    getABead(76);
  4042. };
  4043. bracelets_popup.bead_set_0.bead_77.onPress = function()
  4044. {
  4045.    getABead(77);
  4046. };
  4047. bracelets_popup.bead_set_0.bead_78.onPress = function()
  4048. {
  4049.    getABead(78);
  4050. };
  4051. bracelets_popup.bead_set_0.bead_79.onPress = function()
  4052. {
  4053.    getABead(79);
  4054. };
  4055. bracelets_popup.bead_set_0.bead_80.onPress = function()
  4056. {
  4057.    getABead(80);
  4058. };
  4059. bracelets_popup.bead_set_0.bead_81.onPress = function()
  4060. {
  4061.    getABead(81);
  4062. };
  4063. bracelets_popup.bead_set_0.bead_82.onPress = function()
  4064. {
  4065.    getABead(82);
  4066. };
  4067. bracelets_popup.bead_set_0.bead_83.onPress = function()
  4068. {
  4069.    getABead(83);
  4070. };
  4071. bracelets_popup.bead_set_0.bead_84.onPress = function()
  4072. {
  4073.    getABead(84);
  4074. };
  4075. bracelets_popup.bead_set_0.bead_85.onPress = function()
  4076. {
  4077.    getABead(85);
  4078. };
  4079. bracelets_popup.bead_set_0.bead_86.onPress = function()
  4080. {
  4081.    getABead(86);
  4082. };
  4083. bracelets_popup.bead_set_0.bead_87.onPress = function()
  4084. {
  4085.    getABead(87);
  4086. };
  4087. bracelets_popup.bead_set_0.bead_88.onPress = function()
  4088. {
  4089.    getABead(88);
  4090. };
  4091. bracelets_popup.bead_set_0.bead_89.onPress = function()
  4092. {
  4093.    getABead(89);
  4094. };
  4095. bracelets_popup.bead_set_0.bead_90.onPress = function()
  4096. {
  4097.    getABead(90);
  4098. };
  4099. bracelets_popup.bead_set_0.bead_91.onPress = function()
  4100. {
  4101.    getABead(91);
  4102. };
  4103. bracelets_popup.bead_set_0.bead_92.onPress = function()
  4104. {
  4105.    getABead(92);
  4106. };
  4107. bracelets_popup.bead_set_0.bead_93.onPress = function()
  4108. {
  4109.    getABead(93);
  4110. };
  4111. bracelets_popup.bead_set_0.bead_94.onPress = function()
  4112. {
  4113.    getABead(94);
  4114. };
  4115. bracelets_popup.bead_set_0.bead_95.onPress = function()
  4116. {
  4117.    getABead(95);
  4118. };
  4119. bracelets_popup.bead_set_0.bead_96.onPress = function()
  4120. {
  4121.    getABead(96);
  4122. };
  4123. bracelets_popup.bead_set_0.bead_97.onPress = function()
  4124. {
  4125.    getABead(97);
  4126. };
  4127. bracelets_popup.bead_set_0.bead_98.onPress = function()
  4128. {
  4129.    getABead(98);
  4130. };
  4131. bracelets_popup.bead_set_0.bead_99.onPress = function()
  4132. {
  4133.    getABead(99);
  4134. };
  4135. bracelets_popup.bead_set_0.bead_100.onPress = function()
  4136. {
  4137.    getABead(100);
  4138. };
  4139. bracelets_popup.bead_set_0.bead_101.onPress = function()
  4140. {
  4141.    getABead(101);
  4142. };
  4143. bracelets_popup.bead_set_0.bead_102.onPress = function()
  4144. {
  4145.    getABead(102);
  4146. };
  4147. bracelets_popup.bead_set_0.bead_103.onPress = function()
  4148. {
  4149.    getABead(103);
  4150. };
  4151. bracelets_popup.bead_set_0.bead_104.onPress = function()
  4152. {
  4153.    getABead(104);
  4154. };
  4155. bracelets_popup.bead_set_0.bead_105.onPress = function()
  4156. {
  4157.    getABead(105);
  4158. };
  4159. gs_symbol.onPress = function()
  4160. {
  4161.    getUrl("http://www.girlsense.com/premium/", "_blank");
  4162. };
  4163. gs_title_1.onPress = function()
  4164. {
  4165.    getUrl("http://www.girlsense.com/premium/", "_blank");
  4166. };
  4167.